diff --git a/test/C++Frontend/2003-08-20-ExceptionFail.cpp b/test/C++Frontend/2003-08-20-ExceptionFail.cpp index 606a2f27d65..fd1c6ad4c2a 100644 --- a/test/C++Frontend/2003-08-20-ExceptionFail.cpp +++ b/test/C++Frontend/2003-08-20-ExceptionFail.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + void foo(); void bar() { diff --git a/test/C++Frontend/2003-08-21-EmptyClass.cpp b/test/C++Frontend/2003-08-21-EmptyClass.cpp index 34629d1a4c9..2f90b3a1053 100644 --- a/test/C++Frontend/2003-08-21-EmptyClass.cpp +++ b/test/C++Frontend/2003-08-21-EmptyClass.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + // This tests compilation of EMPTY_CLASS_EXPR's struct empty {}; diff --git a/test/C++Frontend/2003-08-27-TypeNamespaces.cpp b/test/C++Frontend/2003-08-27-TypeNamespaces.cpp index 01da73876f4..cd7247e6085 100644 --- a/test/C++Frontend/2003-08-27-TypeNamespaces.cpp +++ b/test/C++Frontend/2003-08-27-TypeNamespaces.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + namespace foo { namespace bar { diff --git a/test/C++Frontend/2003-08-28-ForwardType.cpp b/test/C++Frontend/2003-08-28-ForwardType.cpp index a64531c0666..1142317a8b9 100644 --- a/test/C++Frontend/2003-08-28-ForwardType.cpp +++ b/test/C++Frontend/2003-08-28-ForwardType.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + // XFAIL: darwin,sun // Default placement versions of operator new. inline void* operator new(unsigned, void* __p) throw(); diff --git a/test/C++Frontend/2003-08-28-SaveExprBug.cpp b/test/C++Frontend/2003-08-28-SaveExprBug.cpp index a94ff03c682..594ccd48086 100644 --- a/test/C++Frontend/2003-08-28-SaveExprBug.cpp +++ b/test/C++Frontend/2003-08-28-SaveExprBug.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + char* eback(); diff --git a/test/C++Frontend/2003-08-31-StructLayout.cpp b/test/C++Frontend/2003-08-31-StructLayout.cpp index 78d8d33e874..21d504c771d 100644 --- a/test/C++Frontend/2003-08-31-StructLayout.cpp +++ b/test/C++Frontend/2003-08-31-StructLayout.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + // There is a HOLE in the derived2 object due to not wanting to place the two // baseclass instances at the same offset! diff --git a/test/C++Frontend/2003-09-22-CompositeExprValue.cpp b/test/C++Frontend/2003-09-22-CompositeExprValue.cpp index 9ee0289658f..b1373ba66dc 100644 --- a/test/C++Frontend/2003-09-22-CompositeExprValue.cpp +++ b/test/C++Frontend/2003-09-22-CompositeExprValue.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + struct duration { duration operator/=(int c) { return *this; diff --git a/test/C++Frontend/2003-09-29-ArgumentNumberMismatch.cpp b/test/C++Frontend/2003-09-29-ArgumentNumberMismatch.cpp index 7c4e23f40ff..19435c60750 100644 --- a/test/C++Frontend/2003-09-29-ArgumentNumberMismatch.cpp +++ b/test/C++Frontend/2003-09-29-ArgumentNumberMismatch.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + // Non-POD classes cannot be passed into a function by component, because their // dtors must be run. Instead, pass them in by reference. The C++ front-end // was mistakenly "thinking" that 'foo' took a structure by component. diff --git a/test/C++Frontend/2003-09-30-CommaExprBug.cpp b/test/C++Frontend/2003-09-30-CommaExprBug.cpp index 3d57a54a736..afe470cd11b 100644 --- a/test/C++Frontend/2003-09-30-CommaExprBug.cpp +++ b/test/C++Frontend/2003-09-30-CommaExprBug.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + class Empty {}; void foo(Empty E); diff --git a/test/C++Frontend/2003-09-30-ForIncrementExprBug.cpp b/test/C++Frontend/2003-09-30-ForIncrementExprBug.cpp index 7c8ac853e6c..40c9c87ae1e 100644 --- a/test/C++Frontend/2003-09-30-ForIncrementExprBug.cpp +++ b/test/C++Frontend/2003-09-30-ForIncrementExprBug.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + struct C {}; C &foo(); diff --git a/test/C++Frontend/2003-09-30-ForIncrementExprBug2.cpp b/test/C++Frontend/2003-09-30-ForIncrementExprBug2.cpp index 8e3049c2438..e07eb425d28 100644 --- a/test/C++Frontend/2003-09-30-ForIncrementExprBug2.cpp +++ b/test/C++Frontend/2003-09-30-ForIncrementExprBug2.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + // Test with an opaque type struct C; diff --git a/test/C++Frontend/2003-09-30-NestedFunctionDecl.cpp b/test/C++Frontend/2003-09-30-NestedFunctionDecl.cpp index 77f6b1f259a..ed7c871a667 100644 --- a/test/C++Frontend/2003-09-30-NestedFunctionDecl.cpp +++ b/test/C++Frontend/2003-09-30-NestedFunctionDecl.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + // The C++ front-end thinks the two foo's are different, the LLVM emitter // thinks they are the same. The disconnect causes problems. diff --git a/test/C++Frontend/2003-10-17-BoolBitfields.cpp b/test/C++Frontend/2003-10-17-BoolBitfields.cpp index e33722878e7..547a367d34e 100644 --- a/test/C++Frontend/2003-10-17-BoolBitfields.cpp +++ b/test/C++Frontend/2003-10-17-BoolBitfields.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + struct test { bool A : 1; bool B : 1; diff --git a/test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp b/test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp index 39ec5c76fac..19cb0ccbcc6 100644 --- a/test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp +++ b/test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + template struct super { diff --git a/test/C++Frontend/2003-11-04-ArrayConstructors.cpp b/test/C++Frontend/2003-11-04-ArrayConstructors.cpp index 10097f6d12d..8c7c0bfa7db 100644 --- a/test/C++Frontend/2003-11-04-ArrayConstructors.cpp +++ b/test/C++Frontend/2003-11-04-ArrayConstructors.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + struct Foo { Foo(int); diff --git a/test/C++Frontend/2003-11-04-CatchLabelName.cpp b/test/C++Frontend/2003-11-04-CatchLabelName.cpp index 1646f024db4..8acf88ddbaf 100644 --- a/test/C++Frontend/2003-11-04-CatchLabelName.cpp +++ b/test/C++Frontend/2003-11-04-CatchLabelName.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + #include void bar(); diff --git a/test/C++Frontend/2003-11-18-EnumArray.cpp b/test/C++Frontend/2003-11-18-EnumArray.cpp index b4d861b2c38..6eaf9d66f2d 100644 --- a/test/C++Frontend/2003-11-18-EnumArray.cpp +++ b/test/C++Frontend/2003-11-18-EnumArray.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + enum TchkType { tchkNum, tchkString, tchkSCN, tchkNone }; diff --git a/test/C++Frontend/2003-11-18-PtrMemConstantInitializer.cpp b/test/C++Frontend/2003-11-18-PtrMemConstantInitializer.cpp index a146cc1e057..ae76a6c6379 100644 --- a/test/C++Frontend/2003-11-18-PtrMemConstantInitializer.cpp +++ b/test/C++Frontend/2003-11-18-PtrMemConstantInitializer.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + struct Gfx { void opMoveSetShowText(); }; diff --git a/test/C++Frontend/2003-11-25-ReturningOpaqueByValue.cpp b/test/C++Frontend/2003-11-25-ReturningOpaqueByValue.cpp index bbe08378a93..83fe1b3e810 100644 --- a/test/C++Frontend/2003-11-25-ReturningOpaqueByValue.cpp +++ b/test/C++Frontend/2003-11-25-ReturningOpaqueByValue.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + #include std::vector my_method (); diff --git a/test/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp b/test/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp index 60061d2107f..16026c34b51 100644 --- a/test/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp +++ b/test/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + struct CallSite { int X; diff --git a/test/C++Frontend/2003-11-29-DuplicatedCleanupTest.cpp b/test/C++Frontend/2003-11-29-DuplicatedCleanupTest.cpp index 2f94d996403..8131baafae7 100644 --- a/test/C++Frontend/2003-11-29-DuplicatedCleanupTest.cpp +++ b/test/C++Frontend/2003-11-29-DuplicatedCleanupTest.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + void doesntThrow() throw(); struct F { diff --git a/test/C++Frontend/2003-12-08-ArrayOfPtrToMemberFunc.cpp b/test/C++Frontend/2003-12-08-ArrayOfPtrToMemberFunc.cpp index b1677bc203d..d5122340225 100644 --- a/test/C++Frontend/2003-12-08-ArrayOfPtrToMemberFunc.cpp +++ b/test/C++Frontend/2003-12-08-ArrayOfPtrToMemberFunc.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + struct Evil { void fun (); }; diff --git a/test/C++Frontend/2004-03-08-ReinterpretCastCopy.cpp b/test/C++Frontend/2004-03-08-ReinterpretCastCopy.cpp index 3876527067e..755d7c7621f 100644 --- a/test/C++Frontend/2004-03-08-ReinterpretCastCopy.cpp +++ b/test/C++Frontend/2004-03-08-ReinterpretCastCopy.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + struct A { virtual void Method() = 0; }; diff --git a/test/C++Frontend/2004-03-15-CleanupsAndGotos.cpp b/test/C++Frontend/2004-03-15-CleanupsAndGotos.cpp index 4a7715d53eb..be14b7f639b 100644 --- a/test/C++Frontend/2004-03-15-CleanupsAndGotos.cpp +++ b/test/C++Frontend/2004-03-15-CleanupsAndGotos.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + // Testcase from Bug 291 struct X { diff --git a/test/C++Frontend/2004-06-08-LateTemplateInstantiation.cpp b/test/C++Frontend/2004-06-08-LateTemplateInstantiation.cpp index 5d04d23ef2f..4d31c3685e5 100644 --- a/test/C++Frontend/2004-06-08-LateTemplateInstantiation.cpp +++ b/test/C++Frontend/2004-06-08-LateTemplateInstantiation.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + template diff --git a/test/C++Frontend/2004-09-27-CompilerCrash.cpp b/test/C++Frontend/2004-09-27-CompilerCrash.cpp index 71b3cc876d8..726bd86a40d 100644 --- a/test/C++Frontend/2004-09-27-CompilerCrash.cpp +++ b/test/C++Frontend/2004-09-27-CompilerCrash.cpp @@ -1,3 +1,5 @@ +// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null + struct Pass {} ;