From ca020c124eacc6edede13535d9effb152fe699fd Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Sat, 20 Aug 2011 00:17:58 +0000 Subject: [PATCH] Remove the rest of the files in FrontendC++ and the directory itself. All tests have been updated and migrated into clang or were obsolete. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138165 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendC++/2003-11-02-WeakLinkage.cpp | 13 ------ .../2003-11-18-PtrMemConstantInitializer.cpp | 14 ------- .../2003-11-25-ReturningOpaqueByValue.cpp | 12 ------ .../2003-11-27-MultipleInheritanceThunk.cpp | 28 ------------- .../2003-11-29-DuplicatedCleanupTest.cpp | 41 ------------------- .../2003-12-08-ArrayOfPtrToMemberFunc.cpp | 12 ------ .../2004-01-11-DynamicInitializedConstant.cpp | 6 --- test/FrontendC++/dg.exp | 5 --- 8 files changed, 131 deletions(-) delete mode 100644 test/FrontendC++/2003-11-02-WeakLinkage.cpp delete mode 100644 test/FrontendC++/2003-11-18-PtrMemConstantInitializer.cpp delete mode 100644 test/FrontendC++/2003-11-25-ReturningOpaqueByValue.cpp delete mode 100644 test/FrontendC++/2003-11-27-MultipleInheritanceThunk.cpp delete mode 100644 test/FrontendC++/2003-11-29-DuplicatedCleanupTest.cpp delete mode 100644 test/FrontendC++/2003-12-08-ArrayOfPtrToMemberFunc.cpp delete mode 100644 test/FrontendC++/2004-01-11-DynamicInitializedConstant.cpp delete mode 100644 test/FrontendC++/dg.exp diff --git a/test/FrontendC++/2003-11-02-WeakLinkage.cpp b/test/FrontendC++/2003-11-02-WeakLinkage.cpp deleted file mode 100644 index 748ca6385be..00000000000 --- a/test/FrontendC++/2003-11-02-WeakLinkage.cpp +++ /dev/null @@ -1,13 +0,0 @@ -// RUN: %llvmgcc -xc++ -S -o - %s | not grep weak -// The template should compile to linkonce linkage, not weak linkage. - -template -void thefunc(); - -template -inline void thefunc() {} - -void test() { - thefunc(); -} - diff --git a/test/FrontendC++/2003-11-18-PtrMemConstantInitializer.cpp b/test/FrontendC++/2003-11-18-PtrMemConstantInitializer.cpp deleted file mode 100644 index 72609e7ccb4..00000000000 --- a/test/FrontendC++/2003-11-18-PtrMemConstantInitializer.cpp +++ /dev/null @@ -1,14 +0,0 @@ -// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null - -struct Gfx { - void opMoveSetShowText(); -}; - -struct Operator { - void (Gfx::*func)(); -}; - -Operator opTab[] = { - {&Gfx::opMoveSetShowText}, -}; - diff --git a/test/FrontendC++/2003-11-25-ReturningOpaqueByValue.cpp b/test/FrontendC++/2003-11-25-ReturningOpaqueByValue.cpp deleted file mode 100644 index 5ea0a2c4aa8..00000000000 --- a/test/FrontendC++/2003-11-25-ReturningOpaqueByValue.cpp +++ /dev/null @@ -1,12 +0,0 @@ -// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null - -#include -std::vector my_method (); - -int -main () -{ - my_method (); - return 0; -} - diff --git a/test/FrontendC++/2003-11-27-MultipleInheritanceThunk.cpp b/test/FrontendC++/2003-11-27-MultipleInheritanceThunk.cpp deleted file mode 100644 index 99cfc8d21df..00000000000 --- a/test/FrontendC++/2003-11-27-MultipleInheritanceThunk.cpp +++ /dev/null @@ -1,28 +0,0 @@ -// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null - - -struct CallSite { - int X; - - CallSite(const CallSite &CS); -}; - -struct AliasAnalysis { - int TD; - - virtual int getModRefInfo(CallSite CS); -}; - - -struct Pass { - int X; - virtual int foo(); -}; - -struct AliasAnalysisCounter : public Pass, public AliasAnalysis { - int getModRefInfo(CallSite CS) { - return 0; - } -}; - -AliasAnalysisCounter AAC; diff --git a/test/FrontendC++/2003-11-29-DuplicatedCleanupTest.cpp b/test/FrontendC++/2003-11-29-DuplicatedCleanupTest.cpp deleted file mode 100644 index 8df95cb1ee6..00000000000 --- a/test/FrontendC++/2003-11-29-DuplicatedCleanupTest.cpp +++ /dev/null @@ -1,41 +0,0 @@ -// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null - - -void doesntThrow() throw(); -struct F { - ~F() { doesntThrow(); } -}; - -void atest() { - F A; -lab: - F B; - goto lab; -} - -void test(int val) { -label: { - F A; - F B; - if (val == 0) goto label; - if (val == 1) goto label; -} -} - -void test3(int val) { -label: { - F A; - F B; - if (val == 0) { doesntThrow(); goto label; } - if (val == 1) { doesntThrow(); goto label; } -} -} - -void test4(int val) { -label: { - F A; - F B; - if (val == 0) { F C; goto label; } - if (val == 1) { F D; goto label; } -} -} diff --git a/test/FrontendC++/2003-12-08-ArrayOfPtrToMemberFunc.cpp b/test/FrontendC++/2003-12-08-ArrayOfPtrToMemberFunc.cpp deleted file mode 100644 index b87e7869ed7..00000000000 --- a/test/FrontendC++/2003-12-08-ArrayOfPtrToMemberFunc.cpp +++ /dev/null @@ -1,12 +0,0 @@ -// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null - -struct Evil { - void fun (); -}; -int foo(); -typedef void (Evil::*memfunptr) (); -static memfunptr jumpTable[] = { &Evil::fun }; - -void Evil::fun() { - (this->*jumpTable[foo()]) (); -} diff --git a/test/FrontendC++/2004-01-11-DynamicInitializedConstant.cpp b/test/FrontendC++/2004-01-11-DynamicInitializedConstant.cpp deleted file mode 100644 index 8ae15c9592b..00000000000 --- a/test/FrontendC++/2004-01-11-DynamicInitializedConstant.cpp +++ /dev/null @@ -1,6 +0,0 @@ -// RUN: %llvmgcc -xc++ -S -o - %s | not grep { constant } - -extern int X; -const int Y = X; -const int* foo() { return &Y; } - diff --git a/test/FrontendC++/dg.exp b/test/FrontendC++/dg.exp deleted file mode 100644 index fc852e30acf..00000000000 --- a/test/FrontendC++/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if [ llvm_gcc_supports c++ ] then { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]] -} -- 2.34.1