From 4cc2328e4eefb4d92a3fe7a938c724a3097a7d86 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Sat, 20 Aug 2011 00:08:36 +0000 Subject: [PATCH] Remove migrated or obsolete tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138156 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../2004-03-08-ReinterpretCastCopy.cpp | 21 --------------- .../2004-03-09-UnmangledBuiltinMethods.cpp | 8 ------ .../2004-03-15-CleanupsAndGotos.cpp | 14 ---------- .../2004-06-08-LateTemplateInstantiation.cpp | 19 -------------- test/FrontendC++/2004-09-27-CompilerCrash.cpp | 13 ---------- .../2004-09-27-DidntEmitTemplate.cpp | 23 ---------------- .../2004-11-27-EmitsUnusedInlineFunctions.cpp | 7 ----- .../2004-11-27-ExceptionCleanupAssertion.cpp | 14 ---------- .../2004-11-27-FriendDefaultArgCrash.cpp | 9 ------- ...04-11-27-InlineAsmFunctionRedefinition.cpp | 26 ------------------- .../2005-01-03-StaticInitializers.cpp | 8 ------ 11 files changed, 162 deletions(-) delete mode 100644 test/FrontendC++/2004-03-08-ReinterpretCastCopy.cpp delete mode 100644 test/FrontendC++/2004-03-09-UnmangledBuiltinMethods.cpp delete mode 100644 test/FrontendC++/2004-03-15-CleanupsAndGotos.cpp delete mode 100644 test/FrontendC++/2004-06-08-LateTemplateInstantiation.cpp delete mode 100644 test/FrontendC++/2004-09-27-CompilerCrash.cpp delete mode 100644 test/FrontendC++/2004-09-27-DidntEmitTemplate.cpp delete mode 100644 test/FrontendC++/2004-11-27-EmitsUnusedInlineFunctions.cpp delete mode 100644 test/FrontendC++/2004-11-27-ExceptionCleanupAssertion.cpp delete mode 100644 test/FrontendC++/2004-11-27-FriendDefaultArgCrash.cpp delete mode 100644 test/FrontendC++/2004-11-27-InlineAsmFunctionRedefinition.cpp delete mode 100644 test/FrontendC++/2005-01-03-StaticInitializers.cpp diff --git a/test/FrontendC++/2004-03-08-ReinterpretCastCopy.cpp b/test/FrontendC++/2004-03-08-ReinterpretCastCopy.cpp deleted file mode 100644 index 35880ab3630..00000000000 --- a/test/FrontendC++/2004-03-08-ReinterpretCastCopy.cpp +++ /dev/null @@ -1,21 +0,0 @@ -// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null - -struct A { - virtual void Method() = 0; -}; - -struct B : public A { - virtual void Method() { } -}; - -typedef void (A::*fn_type_a)(void); -typedef void (B::*fn_type_b)(void); - -int main(int argc, char **argv) -{ - fn_type_a f = reinterpret_cast(&B::Method); - fn_type_b g = reinterpret_cast(f); - B b; - (b.*g)(); - return 0; -} diff --git a/test/FrontendC++/2004-03-09-UnmangledBuiltinMethods.cpp b/test/FrontendC++/2004-03-09-UnmangledBuiltinMethods.cpp deleted file mode 100644 index a600e841e7a..00000000000 --- a/test/FrontendC++/2004-03-09-UnmangledBuiltinMethods.cpp +++ /dev/null @@ -1,8 +0,0 @@ -// RUN: %llvmgcc -xc++ -S -o - %s | grep _ZN11AccessFlags6strlenEv - -struct AccessFlags { - void strlen(); -}; - -void AccessFlags::strlen() { } - diff --git a/test/FrontendC++/2004-03-15-CleanupsAndGotos.cpp b/test/FrontendC++/2004-03-15-CleanupsAndGotos.cpp deleted file mode 100644 index c2e52f66dce..00000000000 --- a/test/FrontendC++/2004-03-15-CleanupsAndGotos.cpp +++ /dev/null @@ -1,14 +0,0 @@ -// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null - -// Testcase from Bug 291 - -struct X { - ~X(); -}; - -void foo() { - X v; - -TryAgain: - goto TryAgain; -} diff --git a/test/FrontendC++/2004-06-08-LateTemplateInstantiation.cpp b/test/FrontendC++/2004-06-08-LateTemplateInstantiation.cpp deleted file mode 100644 index 4ad4c7d061a..00000000000 --- a/test/FrontendC++/2004-06-08-LateTemplateInstantiation.cpp +++ /dev/null @@ -1,19 +0,0 @@ -// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null - - - -template -struct normal_iterator { - int FIELD; -}; - -void foo(normal_iterator); -normal_iterator baz(); - -void bar() { - foo(baz()); -} - -void *bar2() { - return (void*)foo; -} diff --git a/test/FrontendC++/2004-09-27-CompilerCrash.cpp b/test/FrontendC++/2004-09-27-CompilerCrash.cpp deleted file mode 100644 index f52baaf7058..00000000000 --- a/test/FrontendC++/2004-09-27-CompilerCrash.cpp +++ /dev/null @@ -1,13 +0,0 @@ -// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null - -struct Pass {} ; -template -Pass *callDefaultCtor() { return new PassName(); } - -void foo(Pass *(*C)()); - -#include - -bool foo(std::string &X) { - return X.empty(); -} diff --git a/test/FrontendC++/2004-09-27-DidntEmitTemplate.cpp b/test/FrontendC++/2004-09-27-DidntEmitTemplate.cpp deleted file mode 100644 index 66b970cb6fd..00000000000 --- a/test/FrontendC++/2004-09-27-DidntEmitTemplate.cpp +++ /dev/null @@ -1,23 +0,0 @@ -// RUN: %llvmgxx -xc++ %s -S -o - | grep callDefaultCtor | \ -// RUN: not grep declare - -// This is a testcase for LLVM PR445, which was a problem where the -// instantiation of callDefaultCtor was not being emitted correctly. - -struct Pass {}; - -template -Pass *callDefaultCtor() { return new Pass(); } - -void foo(Pass *(*C)()); - -struct basic_string { - bool empty() const { return true; } -}; - - -bool foo2(basic_string &X) { - return X.empty(); -} -void baz() { foo(callDefaultCtor); } - diff --git a/test/FrontendC++/2004-11-27-EmitsUnusedInlineFunctions.cpp b/test/FrontendC++/2004-11-27-EmitsUnusedInlineFunctions.cpp deleted file mode 100644 index 794b7d7fd8b..00000000000 --- a/test/FrontendC++/2004-11-27-EmitsUnusedInlineFunctions.cpp +++ /dev/null @@ -1,7 +0,0 @@ -// The C++ front-end was emitting WAY too many inline functions. This test -// verifies that it does not emit the body of getchar, because it is not used. -// This corresponds to PR459 - -// RUN: %llvmgxx %s -S -o - | not grep {^i32 .getchar} - -#include diff --git a/test/FrontendC++/2004-11-27-ExceptionCleanupAssertion.cpp b/test/FrontendC++/2004-11-27-ExceptionCleanupAssertion.cpp deleted file mode 100644 index f3d225e81a6..00000000000 --- a/test/FrontendC++/2004-11-27-ExceptionCleanupAssertion.cpp +++ /dev/null @@ -1,14 +0,0 @@ -// RUN: %llvmgxx %s -S -o /dev/null - -// This is PR421 - -struct Strongbad { - Strongbad(const char *str ); - ~Strongbad(); - operator const char *() const; -}; - -void TheCheat () { - Strongbad foo(0); - Strongbad dirs[] = { Strongbad(0) + 1}; -} diff --git a/test/FrontendC++/2004-11-27-FriendDefaultArgCrash.cpp b/test/FrontendC++/2004-11-27-FriendDefaultArgCrash.cpp deleted file mode 100644 index 731e72617b9..00000000000 --- a/test/FrontendC++/2004-11-27-FriendDefaultArgCrash.cpp +++ /dev/null @@ -1,9 +0,0 @@ -// RUN: %llvmgxx %s -o /dev/null -S - -// PR447 - -namespace nm { - struct str { - friend int foo(int arg = 0); - }; -} diff --git a/test/FrontendC++/2004-11-27-InlineAsmFunctionRedefinition.cpp b/test/FrontendC++/2004-11-27-InlineAsmFunctionRedefinition.cpp deleted file mode 100644 index 42b223bc99c..00000000000 --- a/test/FrontendC++/2004-11-27-InlineAsmFunctionRedefinition.cpp +++ /dev/null @@ -1,26 +0,0 @@ -// RUN: %llvmgxx %s -S -o /dev/null - -// PR397 - -struct stat { }; -struct stat64 { }; - -extern "C" { - -extern int lstat(const char *, struct stat *) __asm__("lstat64"); -extern int lstat64(const char *, struct stat64 *); - -extern int __lxstat(int, const char *, struct stat *) __asm__("__lxstat64"); -extern int __lxstat64(int, const char *, struct stat64 *); - -extern __inline__ int lstat(const char *path, struct stat *statbuf) { - return __lxstat(3, path, statbuf); -} -extern __inline__ int lstat64(const char *path, struct stat64 *statbuf) { - return __lxstat64(3, path, statbuf); -} -} - -int do_one_file(void) { - return lstat(0, 0) + lstat64(0,0); -} diff --git a/test/FrontendC++/2005-01-03-StaticInitializers.cpp b/test/FrontendC++/2005-01-03-StaticInitializers.cpp deleted file mode 100644 index da1b005cf4a..00000000000 --- a/test/FrontendC++/2005-01-03-StaticInitializers.cpp +++ /dev/null @@ -1,8 +0,0 @@ -// RUN: %llvmgxx %s -S -o - | not grep llvm.global_ctor - -struct S { - int A[2]; -}; - -int XX = (int)(long)&(((struct S*)0)->A[1]); - -- 2.34.1