aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-06-02 22:26:15 +0000
committerBill Wendling <isanbard@gmail.com>2011-06-02 22:26:15 +0000
commit76dd0de6d5f05024f6870fd053c45953f80d710e (patch)
tree60553aca53b9112f952d1b6ec7ad56a2aa6a4b90
parent6edf90b8a7168e53409d161fb8b285094c4c9182 (diff)
This should have been a C++ testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132504 91177308-0d34-0410-b5e6-96231b3b80d8
-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 = {