diff options
author | arphaman <arphaman@gmail.com> | 2013-07-16 15:17:36 +0100 |
---|---|---|
committer | arphaman <arphaman@gmail.com> | 2013-07-16 15:17:36 +0100 |
commit | 7795262f5a6a800c078e59dc12bf20e523d37eb1 (patch) | |
tree | 179a8c837831f633f90860a0bf3ca155a1fdacf5 | |
parent | 14efd2da9d930c848432a5cd241bdea10ee9b9c8 (diff) | |
download | flang-7795262f5a6a800c078e59dc12bf20e523d37eb1.tar.gz |
removed added clang stuff
-rw-r--r-- | test/ARCMT/objcmt-property.m | 57 | ||||
-rw-r--r-- | test/ARCMT/objcmt-property.m.result | 57 | ||||
-rw-r--r-- | test/Analysis/builtin-functions.cpp | 7 | ||||
-rw-r--r-- | test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p7-1y.cpp | 94 | ||||
-rw-r--r-- | test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp | 177 | ||||
-rw-r--r-- | test/CodeGen/builtins-arm-exclusive.c | 112 | ||||
-rw-r--r-- | test/FixIt/typo-using.cpp | 56 | ||||
-rw-r--r-- | test/Misc/permissions.cpp | 15 | ||||
-rw-r--r-- | test/Modules/Inputs/cxx-decls-imported.h | 0 | ||||
-rw-r--r-- | test/Modules/Inputs/cxx-decls-unimported.h | 1 | ||||
-rw-r--r-- | test/Modules/cxx-decls.cpp | 12 | ||||
-rw-r--r-- | test/PCH/debug-info-limited-struct.c | 4 | ||||
-rw-r--r-- | test/PCH/debug-info-limited-struct.h | 8 | ||||
-rw-r--r-- | test/Sema/builtins-arm-exclusive.c | 61 | ||||
-rw-r--r-- | test/SemaCXX/alignment-of-derived-class.cpp | 41 | ||||
-rw-r--r-- | test/SemaCXX/typo-correction-pt2.cpp | 16 | ||||
-rw-r--r-- | unittests/AST/ASTVectorTest.cpp | 24 |
17 files changed, 0 insertions, 742 deletions
diff --git a/test/ARCMT/objcmt-property.m b/test/ARCMT/objcmt-property.m deleted file mode 100644 index ca1b504dcb..0000000000 --- a/test/ARCMT/objcmt-property.m +++ /dev/null @@ -1,57 +0,0 @@ -// RUN: rm -rf %t -// RUN: %clang_cc1 -objcmt-migrate-property -mt-migrate-directory %t %s -x objective-c -fobjc-runtime-has-weak -fobjc-arc -fobjc-default-synthesize-properties -triple x86_64-apple-darwin11 -// RUN: c-arcmt-test -mt-migrate-directory %t | arcmt-test -verify-transformed-files %s.result -// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c -fobjc-runtime-has-weak -fobjc-arc -fobjc-default-synthesize-properties %s.result - -@class NSString; -@protocol NSCopying @end - -@interface NSObject <NSCopying> -@end - -@interface NSDictionary : NSObject -@end - -@interface I : NSObject { - int ivarVal; -} -- (void) setWeakProp : (NSString *__weak)Val; -- (NSString *__weak) WeakProp; - -- (NSString *) StrongProp; -- (void) setStrongProp : (NSString *)Val; - -- (NSString *) UnavailProp __attribute__((unavailable)); -- (void) setUnavailProp : (NSString *)Val; - -- (NSString *) UnavailProp1 __attribute__((unavailable)); -- (void) setUnavailProp1 : (NSString *)Val __attribute__((unavailable)); - -- (NSString *) UnavailProp2; -- (void) setUnavailProp2 : (NSString *)Val __attribute__((unavailable)); - -- (NSDictionary*) undoAction; -- (void) setUndoAction: (NSDictionary*)Arg; -@end - -@implementation I -@end - -@class NSArray; - -@interface MyClass2 { -@private - NSArray *_names1; - NSArray *_names2; - NSArray *_names3; - NSArray *_names4; -} -- (void)setNames1:(NSArray *)names; -- (void)setNames4:(__strong NSArray *)names; -- (void)setNames3:(__strong NSArray *)names; -- (void)setNames2:(NSArray *)names; -- (NSArray *) names2; -- (NSArray *)names3; -- (__strong NSArray *)names4; -- (NSArray *) names1; -@end diff --git a/test/ARCMT/objcmt-property.m.result b/test/ARCMT/objcmt-property.m.result deleted file mode 100644 index 2bcae864a0..0000000000 --- a/test/ARCMT/objcmt-property.m.result +++ /dev/null @@ -1,57 +0,0 @@ -// RUN: rm -rf %t -// RUN: %clang_cc1 -objcmt-migrate-property -mt-migrate-directory %t %s -x objective-c -fobjc-runtime-has-weak -fobjc-arc -fobjc-default-synthesize-properties -triple x86_64-apple-darwin11 -// RUN: c-arcmt-test -mt-migrate-directory %t | arcmt-test -verify-transformed-files %s.result -// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c -fobjc-runtime-has-weak -fobjc-arc -fobjc-default-synthesize-properties %s.result - -@class NSString; -@protocol NSCopying @end - -@interface NSObject <NSCopying> -@end - -@interface NSDictionary : NSObject -@end - -@interface I : NSObject { - int ivarVal; -} - -@property(weak) NSString * WeakProp; - -@property NSString * StrongProp; - - -- (NSString *) UnavailProp __attribute__((unavailable)); -- (void) setUnavailProp : (NSString *)Val; - -- (NSString *) UnavailProp1 __attribute__((unavailable)); -- (void) setUnavailProp1 : (NSString *)Val __attribute__((unavailable)); - -- (NSString *) UnavailProp2; -- (void) setUnavailProp2 : (NSString *)Val __attribute__((unavailable)); - -@property(copy) NSDictionary * undoAction; - -@end - -@implementation I -@end - -@class NSArray; - -@interface MyClass2 { -@private - NSArray *_names1; - NSArray *_names2; - NSArray *_names3; - NSArray *_names4; -} - - - - -@property NSArray * names2; -@property NSArray * names3; -@property NSArray * names4; -@property NSArray * names1; -@end diff --git a/test/Analysis/builtin-functions.cpp b/test/Analysis/builtin-functions.cpp deleted file mode 100644 index 5c18665d0f..0000000000 --- a/test/Analysis/builtin-functions.cpp +++ /dev/null @@ -1,7 +0,0 @@ -// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -analyze -analyzer-checker=core,debug.ExprInspection %s -std=c++11 -verify - -void clang_analyzer_eval(bool); - -void test(int x) { - clang_analyzer_eval(&x == __builtin_addressof(x)); // expected-warning{{TRUE}} -} diff --git a/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p7-1y.cpp b/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p7-1y.cpp deleted file mode 100644 index f7b3e8e7be..0000000000 --- a/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p7-1y.cpp +++ /dev/null @@ -1,94 +0,0 @@ -// RUN: %clang_cc1 -verify -std=c++1y %s - -namespace std { - template<typename T> struct initializer_list { - const T *p; - unsigned long n; - initializer_list(const T *p, unsigned long n); - }; -} - -int i; -int &&f(); - -using Int = int; -using IntLRef = int&; -using IntRRef = int&&; -using InitListInt = std::initializer_list<int>; -using IntPtr = int*; - -auto x3a = i; -decltype(auto) x3d = i; -using Int = decltype(x3a); -using Int = decltype(x3d); - -auto x4a = (i); -decltype(auto) x4d = (i); -using Int = decltype(x4a); -using IntLRef = decltype(x4d); - -auto x5a = f(); -decltype(auto) x5d = f(); -using Int = decltype(x5a); -using IntRRef = decltype(x5d); - -auto x6a = { 1, 2 }; -decltype(auto) x6d = { 1, 2 }; // expected-error {{cannot deduce 'decltype(auto)' from initializer list}} -using InitListInt = decltype(x6a); - -auto *x7a = &i; -decltype(auto) *x7d = &i; // expected-error {{cannot form pointer to 'decltype(auto)'}} -using IntPtr = decltype(x7a); - -struct S {}; - -decltype(auto) f1(); -decltype(auto) (*f2)(); // expected-error {{'decltype(auto)' can only be used as a return type in a function declaration}} expected-error {{requires an initializer}} -decltype(auto) *f3(); // expected-error {{cannot form pointer to 'decltype(auto)'}} -const decltype(auto) f4(); // expected-error {{'decltype(auto)' cannot be combined with other type specifiers}} -typedef decltype(auto) f5(); // expected-error {{'decltype(auto)' can only be used as a return type in a function declaration}} -decltype(auto) ((((((f6))))())); // ok -decltype(auto) f7()(); // expected-error {{'decltype(auto)' can only be used as a return type in a function declaration}} expected-error {{function cannot return function type}} -decltype(auto) (S::*f8)(); // expected-error {{'decltype(auto)' can only be used as a return type in a function declaration}} expected-error {{requires an initializer}} -decltype(auto) &f9(); // expected-error {{cannot form reference to 'decltype(auto)'}} -decltype(auto) (&f10())[10]; // expected-error {{cannot form array of 'decltype(auto)'}} - -decltype(auto) ((((((v1)))))) = 0; // ok -decltype(auto) v2[1] = { 0 }; // expected-error {{cannot form array of 'decltype(auto)'}} -decltype(auto) &v3 = { 0 }; // expected-error {{cannot form reference to 'decltype(auto)'}} -decltype(auto) *v4 = { 0 }; // expected-error {{cannot form pointer to 'decltype(auto)'}} - -auto multi1a = 0, &multi1b = multi1a; -auto multi1c = multi1a, multi1d = multi1b; -decltype(auto) multi1e = multi1a, multi1f = multi1b; // expected-error {{'decltype(auto)' deduced as 'int' in declaration of 'multi1e' and deduced as 'int &' in declaration of 'multi1f'}} - -auto f1a() { return 0; } -decltype(auto) f1d() { return 0; } -using Int = decltype(f1a()); -using Int = decltype(f1d()); - -auto f2a(int n) { return n; } -decltype(auto) f2d(int n) { return n; } -using Int = decltype(f2a(0)); -using Int = decltype(f2d(0)); - -auto f3a(int n) { return (n); } -decltype(auto) f3d(int n) { return (n); } // expected-warning {{reference to stack memory}} -using Int = decltype(f3a(0)); -using IntLRef = decltype(f3d(0)); - -auto f4a(int n) { return f(); } -decltype(auto) f4d(int n) { return f(); } -using Int = decltype(f4a(0)); -using IntRRef = decltype(f4d(0)); - -auto f5aa(int n) { auto x = f(); return x; } -auto f5ad(int n) { decltype(auto) x = f(); return x; } -decltype(auto) f5da(int n) { auto x = f(); return x; } -decltype(auto) f5dd(int n) { decltype(auto) x = f(); return x; } // expected-error {{rvalue reference to type 'int' cannot bind to lvalue}} -using Int = decltype(f5aa(0)); -using Int = decltype(f5ad(0)); -using Int = decltype(f5da(0)); - -auto init_list_1() { return { 1, 2, 3 }; } // expected-error {{cannot deduce return type from initializer list}} -decltype(auto) init_list_2() { return { 1, 2, 3 }; } // expected-error {{cannot deduce return type from initializer list}} diff --git a/test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp b/test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp deleted file mode 100644 index 6a63b029de..0000000000 --- a/test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp +++ /dev/null @@ -1,177 +0,0 @@ -// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s -// expected-no-diagnostics - -namespace pr12262 { - -template<typename T, typename... Ts> -void abc1(int (*xxx)[sizeof ... (Ts) + 1]); - -void qq1 () { - abc1<int>(0); - abc1<int,double>(0); -} - - -template <unsigned N> class array {}; - - -template<typename T, typename... Types> -array<sizeof...(Types)> make_array1(Types&&... args); - -void qq2 () { - array<1> arr = make_array1<int>(1); - array<3> arr2 = make_array1<int>(1,array<5>(),0.1); -} - - -template<typename T, typename... Types> -int make_array(array<sizeof...(Types)>&, Types... args); - -void qq3 () { - array<1> a1; - int aa1 = make_array<int>(a1,1); - array<2> a2; - int aa2 = make_array<int>(a2, 0L, "abc"); -} - - -template<typename ... Ts> -struct AAA { - template<typename T, typename... Types> - static array<sizeof...(Types)> make_array(Types ... args); -}; - -void qq4 () { - array<2> arr2 = AAA<int, int>::make_array<int>(1,2); -} - -} - - -namespace pr12439 { - -template<class... Members> -struct X { - template<int Idx> - using get_t = decltype(sizeof...(Members)); - - template<int i> - get_t<i> get(); -}; - -template<class... Members> -template<int i> -X<Members...>::get_t<i> X<Members...>::get() -{ - return 0; -} - -} - - -namespace pr13272 { - -template<bool B, class T = void> -struct enable_if { }; - -template<class T> struct enable_if<true, T> { - typedef T type; -}; - -class Exception {}; - -template<class Ex, typename... Args> -void cxx_throw(typename enable_if<(sizeof...(Args) > 0), const char *>::type fmt, Args&&... args) { - return; -} - -void test() { - cxx_throw<Exception>("Youpi",1); -} - -} - - -namespace pr13817 { - -template <unsigned> -struct zod; - -template <> -struct zod<1> {}; - -template <typename T, typename ... Ts> -zod<sizeof...(Ts)> make_zod(Ts ...) { - return zod<sizeof...(Ts)>(); -} - -int main(int argc, char *argv[]) -{ - make_zod<int>(1); - return 0; -} - -} - - -namespace pr14273 { - -template<typename T, int i> -struct myType -{ }; - -template<typename T, typename... Args> -struct Counter -{ - static const int count = 1 + Counter<Args...>::count; -}; - -template<typename T> -struct Counter<T> -{ - static const int count = 1; -}; - -template<typename Arg, typename... Args> -myType<Arg, sizeof...(Args)>* make_array_with_type(const Args&... args) -{ - return 0; -} - -void func(void) -{ - make_array_with_type<char>(1,2,3); -} - -} - - -namespace pr15112 -{ - template<bool, typename _Tp = void> - struct enable_if - { }; - template<typename _Tp> - struct enable_if<true,_Tp> - { typedef _Tp type; }; - - typedef __typeof__(sizeof(int)) size_t; - - template <size_t n, typename T, typename... Args> - struct is_array_of { static const bool value = true; }; - - struct cpu { using value_type = void; }; - - template <size_t Order, typename T> - struct coords_alias { typedef T type; }; - - template <size_t Order, typename MemoryTag> - using coords = typename coords_alias<Order, MemoryTag>::type; - - template <typename MemTag, typename... Args> - typename enable_if<is_array_of<sizeof...(Args), size_t, Args...>::value, - coords<sizeof...(Args), MemTag>>::type - mkcoords(Args... args); - - auto c1 = mkcoords<cpu>(0ul, 0ul, 0ul); -} diff --git a/test/CodeGen/builtins-arm-exclusive.c b/test/CodeGen/builtins-arm-exclusive.c deleted file mode 100644 index 7eccb9e27b..0000000000 --- a/test/CodeGen/builtins-arm-exclusive.c +++ /dev/null @@ -1,112 +0,0 @@ -// REQUIRES: arm-registered-target -// RUN: %clang_cc1 -Wall -Werror -triple thumbv7-linux-gnueabi -fno-signed-char -O3 -emit-llvm -o - %s | FileCheck %s - -// Make sure the canonical use works before going into smaller details: -int atomic_inc(int *addr) { - int Failure, OldVal; - do { - OldVal = __builtin_arm_ldrex(addr); - Failure = __builtin_arm_strex(OldVal + 1, addr); - } while (Failure); - - return OldVal; -} - -// CHECK: @atomic_inc -// CHECK: [[OLDVAL:%.*]] = tail call i32 @llvm.arm.ldrex.p0i32(i32* %addr) -// CHECK: [[INC:%.*]] = add nsw i32 [[OLDVAL]], 1 -// CHECK: [[FAILURE:%.*]] = tail call i32 @llvm.arm.strex.p0i32(i32 [[INC]], i32* %addr) -// CHECK: [[TST:%.*]] = icmp eq i32 [[FAILURE]], 0 -// CHECK: br i1 [[TST]], label {{%[a-zA-Z0-9.]+}}, label {{%[a-zA-Z0-9.]+}} - -struct Simple { - char a, b; -}; - -int test_ldrex(char *addr, long long *addr64, float *addrfloat) { -// CHECK: @test_ldrex - int sum = 0; - sum += __builtin_arm_ldrex(addr); -// CHECK: [[INTRES:%.*]] = tail call i32 @llvm.arm.ldrex.p0i8(i8* %addr) -// CHECK: and i32 [[INTRES]], 255 - - sum += __builtin_arm_ldrex((short *)addr); -// CHECK: [[ADDR16:%.*]] = bitcast i8* %addr to i16* -// CHECK: [[INTRES:%.*]] = tail call i32 @llvm.arm.ldrex.p0i16(i16* [[ADDR16]]) -// CHECK: [[TMPSEXT:%.*]] = shl i32 [[INTRES]], 16 -// CHECK: ashr exact i32 [[TMPSEXT]], 16 - - sum += __builtin_arm_ldrex((int *)addr); -// CHECK: [[ADDR32:%.*]] = bitcast i8* %addr to i32* -// CHECK: call i32 @llvm.arm.ldrex.p0i32(i32* [[ADDR32]]) - - sum += __builtin_arm_ldrex((long long *)addr); -// CHECK: call { i32, i32 } @llvm.arm.ldrexd(i8* %addr) - - sum += __builtin_arm_ldrex(addr64); -// CHECK: [[ADDR64_AS8:%.*]] = bitcast i64* %addr64 to i8* -// CHECK: call { i32, i32 } @llvm.arm.ldrexd(i8* [[ADDR64_AS8]]) - - sum += __builtin_arm_ldrex(addrfloat); -// CHECK: [[INTADDR:%.*]] = bitcast float* %addrfloat to i32* -// CHECK: [[INTRES:%.*]] = tail call i32 @llvm.arm.ldrex.p0i32(i32* [[INTADDR]]) -// CHECK: bitcast i32 [[INTRES]] to float - - sum += __builtin_arm_ldrex((double *)addr); -// CHECK: [[STRUCTRES:%.*]] = tail call { i32, i32 } @llvm.arm.ldrexd(i8* %addr) -// CHECK: [[RESHI:%.*]] = extractvalue { i32, i32 } [[STRUCTRES]], 1 -// CHECK: [[RESLO:%.*]] = extractvalue { i32, i32 } [[STRUCTRES]], 0 -// CHECK: [[RESHI64:%.*]] = zext i32 [[RESHI]] to i64 -// CHECK: [[RESLO64:%.*]] = zext i32 [[RESLO]] to i64 -// CHECK: [[RESHIHI:%.*]] = shl nuw i64 [[RESHI64]], 32 -// CHECK: [[INTRES:%.*]] = or i64 [[RESHIHI]], [[RESLO64]] -// CHECK: bitcast i64 [[INTRES]] to double - - sum += *__builtin_arm_ldrex((int **)addr); -// CHECK: [[INTRES:%.*]] = tail call i32 @llvm.arm.ldrex.p0i32(i32* [[ADDR32]]) -// CHECK: inttoptr i32 [[INTRES]] to i32* - - sum += __builtin_arm_ldrex((struct Simple **)addr)->a; -// CHECK: [[INTRES:%.*]] = tail call i32 @llvm.arm.ldrex.p0i32(i32* [[ADDR32]]) -// CHECK: inttoptr i32 [[INTRES]] to %struct.Simple* - - return sum; -} - -int test_strex(char *addr) { -// CHECK: @test_strex - int res = 0; - struct Simple var = {0}; - res |= __builtin_arm_strex(4, addr); -// CHECK: call i32 @llvm.arm.strex.p0i8(i32 4, i8* %addr) - - res |= __builtin_arm_strex(42, (short *)addr); -// CHECK: [[ADDR16:%.*]] = bitcast i8* %addr to i16* -// CHECK: call i32 @llvm.arm.strex.p0i16(i32 42, i16* [[ADDR16]]) - - res |= __builtin_arm_strex(42, (int *)addr); -// CHECK: [[ADDR32:%.*]] = bitcast i8* %addr to i32* -// CHECK: call i32 @llvm.arm.strex.p0i32(i32 42, i32* [[ADDR32]]) - - res |= __builtin_arm_strex(42, (long long *)addr); -// CHECK: call i32 @llvm.arm.strexd(i32 42, i32 0, i8* %addr) - - res |= __builtin_arm_strex(2.71828f, (float *)addr); -// CHECK: call i32 @llvm.arm.strex.p0i32(i32 1076754509, i32* [[ADDR32]]) - - res |= __builtin_arm_strex(3.14159, (double *)addr); -// CHECK: call i32 @llvm.arm.strexd(i32 -266631570, i32 1074340345, i8* %addr) - - res |= __builtin_arm_strex(&var, (struct Simple **)addr); -// CHECK: [[INTVAL:%.*]] = ptrtoint i16* %var to i32 -// CHECK: call i32 @llvm.arm.strex.p0i32(i32 [[INTVAL]], i32* [[ADDR32]]) - - return res; -} - -void test_clrex() { -// CHECK: @test_clrex - - __builtin_arm_clrex(); -// CHECK: call void @llvm.arm.clrex() -} diff --git a/test/FixIt/typo-using.cpp b/test/FixIt/typo-using.cpp deleted file mode 100644 index 3644dea3b2..0000000000 --- a/test/FixIt/typo-using.cpp +++ /dev/null @@ -1,56 +0,0 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s -// RUN: cp %s %t -// RUN: not %clang_cc1 -fsyntax-only -fixit -x c++ %t -// RUN: %clang_cc1 -fsyntax-only -pedantic -Werror -x c++ %t -// RUN: grep using_suggestion_tyname_ty_dropped_specifier %t - -// These tests have been separated from typo.cpp to keep the maximum typo -// correction counter from ticking over; this causes spurious failures. - -namespace using_suggestion_ty { -namespace N { class AAA {}; } // expected-note {{'AAA' declared here}} -using N::AAB; // expected-error {{no member named 'AAB' in namespace 'using_suggestion_ty::N'; did you mean 'AAA'?}} -} - -namespace using_suggestion_tyname_ty { -namespace N { class AAA {}; } // expected-note {{'AAA' declared here}} -using typename N::AAB; // expected-error {{no member named 'AAB' in namespace 'using_suggestion_tyname_ty::N'; did you mean 'AAA'?}} -} - -namespace using_suggestion_val { -namespace N { void FFF() {} } // expected-note {{'FFF' declared here}} -using N::FFG; // expected-error {{no member named 'FFG' in namespace 'using_suggestion_val::N'; did you mean 'FFF'?}} -} - -namespace using_suggestion_ty_dropped_specifier { -class AAA {}; // expected-note {{'::using_suggestion_ty_dropped_specifier::AAA' declared here}} -namespace N { } -using N::AAA; // expected-error {{no member named 'AAA' in namespace 'using_suggestion_ty_dropped_specifier::N'; did you mean '::using_suggestion_ty_dropped_specifier::AAA'?}} -} - -namespace using_suggestion_tyname_ty_dropped_specifier { -class AAA {}; // expected-note {{'::using_suggestion_tyname_ty_dropped_specifier::AAA' declared here}} -namespace N { } -using typename N::AAA; // expected-error {{no member named 'AAA' in namespace 'using_suggestion_tyname_ty_dropped_specifier::N'; did you mean '::using_suggestion_tyname_ty_dropped_specifier::AAA'?}} -} - -namespace using_suggestion_val_dropped_specifier { -void FFF() {} // expected-note {{'::using_suggestion_val_dropped_specifier::FFF' declared here}} -namespace N { } -using N::FFF; // expected-error {{no member named 'FFF' in namespace 'using_suggestion_val_dropped_specifier::N'; did you mean '::using_suggestion_val_dropped_specifier::FFF'?}} -} - -namespace using_suggestion_member_ty { -class CCC { public: typedef int AAA; }; // expected-note {{'AAA' declared here}} -class DDD : public CCC { public: using CCC::AAB; }; // expected-error {{no member named 'AAB' in 'using_suggestion_member_ty::CCC'; did you mean 'AAA'?}} -} - -namespace using_suggestion_member_val { -class CCC { public: void AAA() { } }; // expected-note {{'AAA' declared here}} -class DDD : public CCC { public: using CCC::AAB; }; // expected-error {{no member named 'AAB' in 'using_suggestion_member_val::CCC'; did you mean 'AAA'?}} -} - -namespace using_suggestion_member_tyname_ty { -class CCC { public: typedef int AAA; }; // expected-note {{'AAA' declared here}} -class DDD : public CCC { public: using typename CCC::AAB; }; // expected-error {{no member named 'AAB' in 'using_suggestion_member_tyname_ty::CCC'; did you mean 'AAA'?}} -} diff --git a/test/Misc/permissions.cpp b/test/Misc/permissions.cpp deleted file mode 100644 index 5b89eabcf2..0000000000 --- a/test/Misc/permissions.cpp +++ /dev/null @@ -1,15 +0,0 @@ -// REQUIRES: shell - -// MSYS doesn't emulate umask. -// FIXME: Could we introduce another feature for it? -// REQUIRES: shell-preserves-root' - -// RUN: umask 000 -// RUN: %clang_cc1 -emit-llvm-bc %s -o %t -// RUN: ls -l %t | FileCheck --check-prefix=CHECK000 %s -// CHECK000: rw-rw-rw- - -// RUN: umask 002 -// RUN: %clang_cc1 -emit-llvm-bc %s -o %t -// RUN: ls -l %t | FileCheck --check-prefix=CHECK002 %s -// CHECK002: rw-rw-r-- diff --git a/test/Modules/Inputs/cxx-decls-imported.h b/test/Modules/Inputs/cxx-decls-imported.h deleted file mode 100644 index e69de29bb2..0000000000 --- a/test/Modules/Inputs/cxx-decls-imported.h +++ /dev/null diff --git a/test/Modules/Inputs/cxx-decls-unimported.h b/test/Modules/Inputs/cxx-decls-unimported.h deleted file mode 100644 index 0431e32461..0000000000 --- a/test/Modules/Inputs/cxx-decls-unimported.h +++ /dev/null @@ -1 +0,0 @@ -void operator delete(void*); diff --git a/test/Modules/cxx-decls.cpp b/test/Modules/cxx-decls.cpp deleted file mode 100644 index 733e3f90bc..0000000000 --- a/test/Modules/cxx-decls.cpp +++ /dev/null @@ -1,12 +0,0 @@ -// RUN: rm -rf %t -// RUN: %clang_cc1 -x objective-c++ -fmodules -fmodules-cache-path=%t -I %S/Inputs %s -verify -std=c++11 - -// expected-no-diagnostics - -@import cxx_decls.imported; - -void test_delete(int *p) { - // We can call the normal global deallocation function even though it has only - // ever been explicitly declared in an unimported submodule. - delete p; -} diff --git a/test/PCH/debug-info-limited-struct.c b/test/PCH/debug-info-limited-struct.c deleted file mode 100644 index 9d0ed26f34..0000000000 --- a/test/PCH/debug-info-limited-struct.c +++ /dev/null @@ -1,4 +0,0 @@ -// RUN: %clang_cc1 -emit-pch -o %t %S/debug-info-limited-struct.h -// RUN: %clang_cc1 -include-pch %t -emit-llvm %s -g -o - | FileCheck %s - -// CHECK-DAG: [ DW_TAG_structure_type ] [foo] {{.*}} [def] diff --git a/test/PCH/debug-info-limited-struct.h b/test/PCH/debug-info-limited-struct.h deleted file mode 100644 index 593e722ce9..0000000000 --- a/test/PCH/debug-info-limited-struct.h +++ /dev/null @@ -1,8 +0,0 @@ -struct foo { - int i; -}; - -void func() { - struct foo *f; - f->i = 3; -} diff --git a/test/Sema/builtins-arm-exclusive.c b/test/Sema/builtins-arm-exclusive.c deleted file mode 100644 index 8c78403114..0000000000 --- a/test/Sema/builtins-arm-exclusive.c +++ /dev/null @@ -1,61 +0,0 @@ -// RUN: %clang_cc1 -triple armv7 -fsyntax-only -verify %s - -struct Simple { - char a, b; -}; - -int test_ldrex(char *addr) { - int sum = 0; - sum += __builtin_arm_ldrex(addr); - sum += __builtin_arm_ldrex((short *)addr); - sum += __builtin_arm_ldrex((int *)addr); - sum += __builtin_arm_ldrex((long long *)addr); - sum += __builtin_arm_ldrex((float *)addr); - sum += __builtin_arm_ldrex((double *)addr); - sum += *__builtin_arm_ldrex((int **)addr); - sum += __builtin_arm_ldrex((struct Simple **)addr)->a; - sum += __builtin_arm_ldrex((volatile char *)addr); - sum += __builtin_arm_ldrex((const volatile char *)addr); - - // In principle this might be valid, but stick to ints and floats for scalar - // types at the moment. - sum += __builtin_arm_ldrex((struct Simple *)addr).a; // expected-error {{address argument to atomic builtin must be a pointer to}} - - sum += __builtin_arm_ldrex((__int128 *)addr); // expected-error {{__int128 is not supported on this target}} expected-error {{address argument to load or store exclusive builtin must be a pointer to 1,2,4 or 8 byte type}} - - __builtin_arm_ldrex(); // expected-error {{too few arguments to function call}} - __builtin_arm_ldrex(1, 2); // expected-error {{too many arguments to function call}} - return sum; -} - -int test_strex(char *addr) { - int res = 0; - struct Simple var = {0}; - res |= __builtin_arm_strex(4, addr); - res |= __builtin_arm_strex(42, (short *)addr); - res |= __builtin_arm_strex(42, (int *)addr); - res |= __builtin_arm_strex(42, (long long *)addr); - res |= __builtin_arm_strex(2.71828f, (float *)addr); - res |= __builtin_arm_strex(3.14159, (double *)addr); - res |= __builtin_arm_strex(&var, (struct Simple **)addr); - - res |= __builtin_arm_strex(42, (volatile char *)addr); - res |= __builtin_arm_strex(42, (char *const)addr); - res |= __builtin_arm_strex(42, (const char *)addr); // expected-warning {{passing 'const char *' to parameter of type 'volatile char *' discards qualifiers}} - - - res |= __builtin_arm_strex(var, (struct Simple *)addr); // expected-error {{address argument to atomic builtin must be a pointer to}} - res |= __builtin_arm_strex(var, (struct Simple **)addr); // expected-error {{passing 'struct Simple' to parameter of incompatible type 'struct Simple *'}} - res |= __builtin_arm_strex(&var, (struct Simple **)addr).a; // expected-error {{is not a structure or union}} - - res |= __builtin_arm_strex(1, (__int128 *)addr); // expected-error {{__int128 is not supported on this target}} expected-error {{address argument to load or store exclusive builtin must be a pointer to 1,2,4 or 8 byte type}} - - __builtin_arm_strex(1); // expected-error {{too few arguments to function call}} - __builtin_arm_strex(1, 2, 3); // expected-error {{too many arguments to function call}} - return res; -} - -void test_clrex() { - __builtin_arm_clrex(); - __builtin_arm_clrex(1); // expected-error {{too many arguments to function call}} -} diff --git a/test/SemaCXX/alignment-of-derived-class.cpp b/test/SemaCXX/alignment-of-derived-class.cpp deleted file mode 100644 index 28c1fa9144..0000000000 --- a/test/SemaCXX/alignment-of-derived-class.cpp +++ /dev/null @@ -1,41 +0,0 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 -// expected-no-diagnostics - -// Test that the alignment of a empty direct base class is correctly -// inherited by the derived class. - -struct A { -} __attribute__ ((aligned(16))); - -static_assert(__alignof(A) == 16, "A should be aligned to 16 bytes"); - -struct B1 : public A { -}; - -static_assert(__alignof(B1) == 16, "B1 should be aligned to 16 bytes"); - -struct B2 : public A { -} __attribute__ ((aligned(2))); - -static_assert(__alignof(B2) == 16, "B2 should be aligned to 16 bytes"); - -struct B3 : public A { -} __attribute__ ((aligned(4))); - -static_assert(__alignof(B3) == 16, "B3 should be aligned to 16 bytes"); - -struct B4 : public A { -} __attribute__ ((aligned(8))); - -static_assert(__alignof(B4) == 16, "B4 should be aligned to 16 bytes"); - -struct B5 : public A { -} __attribute__ ((aligned(16))); - -static_assert(__alignof(B5) == 16, "B5 should be aligned to 16 bytes"); - -struct B6 : public A { -} __attribute__ ((aligned(32))); - -static_assert(__alignof(B6) == 32, "B6 should be aligned to 32 bytes"); - diff --git a/test/SemaCXX/typo-correction-pt2.cpp b/test/SemaCXX/typo-correction-pt2.cpp deleted file mode 100644 index ee4971709f..0000000000 --- a/test/SemaCXX/typo-correction-pt2.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// RUN: %clang_cc1 -fsyntax-only -verify -Wno-c++11-extensions %s -// -// FIXME: This file is overflow from test/SemaCXX/typo-correction.cpp due to a -// hard-coded limit of 20 different typo corrections Sema::CorrectTypo will -// attempt within a single file (which is to avoid having very broken files take -// minutes to finally be rejected by the parser). - -namespace PR12287 { -class zif { - void nab(int); -}; -void nab(); // expected-note{{'::PR12287::nab' declared here}} -void zif::nab(int) { - nab(); // expected-error{{too few arguments to function call, expected 1, have 0; did you mean '::PR12287::nab'?}} -} -} diff --git a/unittests/AST/ASTVectorTest.cpp b/unittests/AST/ASTVectorTest.cpp deleted file mode 100644 index a92e86b3cd..0000000000 --- a/unittests/AST/ASTVectorTest.cpp +++ /dev/null @@ -1,24 +0,0 @@ -//===- unittests/AST/DeclTest.cpp --- Declaration tests -------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// Unit tests for the ASTVector container. -// -//===----------------------------------------------------------------------===// - -#include "llvm/Support/Compiler.h" -#include "clang/AST/ASTContext.h" -#include "clang/AST/ASTVector.h" - -using namespace clang; - -LLVM_ATTRIBUTE_UNUSED void CompileTest() { - ASTContext *C = 0; - ASTVector<int> V; - V.insert(*C, V.begin(), 0); -} |