aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/FrontendC++/unnamed-addr.cpp (renamed from test/FrontendC/unnamed-addr.c)6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/FrontendC/unnamed-addr.c b/test/FrontendC++/unnamed-addr.cpp
index 01a45d2fcb..2f7598ff27 100644
--- a/test/FrontendC/unnamed-addr.c
+++ b/test/FrontendC++/unnamed-addr.cpp
@@ -1,5 +1,6 @@
-// RUN: %llvmgcc -S %s -o - | FileCheck %s
+// RUN: %llvmgxx -S %s -o - | FileCheck %s
// <rdar://problem/9402870>
+extern "C" {
typedef struct __TestResult TestResult;
typedef struct __TestResult* TestResultRef;
@@ -57,6 +58,7 @@ struct __TestCaller {
};
extern const TestImplement TestCallerImplement;
+}
void PassToFunction(const TestImplement*);
@@ -81,7 +83,7 @@ int TestCaller_countTestCases(TestCaller* self) {
return self->numberOfFixtuers;
}
-// CHECK: @C.0.1526 = internal unnamed_addr constant
+// CHECK: @_ZZ14TestCaller_runP12__TestCallerP12__TestResultE3C.0 = internal unnamed_addr constant
// CHECK-NOT: @TestCaseImplement = external unnamed_addr constant %struct.TestImplement
// CHECK: @TestCaseImplement = external constant %struct.TestImplement
const TestImplement TestCallerImplement = {