From 76dd0de6d5f05024f6870fd053c45953f80d710e Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 2 Jun 2011 22:26:15 +0000 Subject: [PATCH] This should have been a C++ testcase. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132504 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../unnamed-addr.c => FrontendC++/unnamed-addr.cpp} | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) rename test/{FrontendC/unnamed-addr.c => FrontendC++/unnamed-addr.cpp} (93%) diff --git a/test/FrontendC/unnamed-addr.c b/test/FrontendC++/unnamed-addr.cpp similarity index 93% rename from test/FrontendC/unnamed-addr.c rename to test/FrontendC++/unnamed-addr.cpp index 01a45d2fcb8..2f7598ff276 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 // +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 = {