aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/C++Frontend/2003-08-20-ExceptionFail.cpp2
-rw-r--r--test/C++Frontend/2003-08-21-EmptyClass.cpp2
-rw-r--r--test/C++Frontend/2003-08-27-TypeNamespaces.cpp2
-rw-r--r--test/C++Frontend/2003-08-28-ForwardType.cpp2
-rw-r--r--test/C++Frontend/2003-08-28-SaveExprBug.cpp2
-rw-r--r--test/C++Frontend/2003-08-31-StructLayout.cpp2
-rw-r--r--test/C++Frontend/2003-09-22-CompositeExprValue.cpp2
-rw-r--r--test/C++Frontend/2003-09-29-ArgumentNumberMismatch.cpp2
-rw-r--r--test/C++Frontend/2003-09-30-CommaExprBug.cpp2
-rw-r--r--test/C++Frontend/2003-09-30-ForIncrementExprBug.cpp2
-rw-r--r--test/C++Frontend/2003-09-30-ForIncrementExprBug2.cpp2
-rw-r--r--test/C++Frontend/2003-09-30-NestedFunctionDecl.cpp2
-rw-r--r--test/C++Frontend/2003-10-17-BoolBitfields.cpp2
-rw-r--r--test/C++Frontend/2003-10-27-VirtualBaseClassCrash.cpp2
-rw-r--r--test/C++Frontend/2003-11-04-ArrayConstructors.cpp2
-rw-r--r--test/C++Frontend/2003-11-04-CatchLabelName.cpp2
-rw-r--r--test/C++Frontend/2003-11-18-EnumArray.cpp2
-rw-r--r--test/C++Frontend/2003-11-18-PtrMemConstantInitializer.cpp2
-rw-r--r--test/C++Frontend/2003-11-25-ReturningOpaqueByValue.cpp2
-rw-r--r--test/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp2
-rw-r--r--test/C++Frontend/2003-11-29-DuplicatedCleanupTest.cpp2
-rw-r--r--test/C++Frontend/2003-12-08-ArrayOfPtrToMemberFunc.cpp2
-rw-r--r--test/C++Frontend/2004-03-08-ReinterpretCastCopy.cpp2
-rw-r--r--test/C++Frontend/2004-03-15-CleanupsAndGotos.cpp2
-rw-r--r--test/C++Frontend/2004-06-08-LateTemplateInstantiation.cpp2
-rw-r--r--test/C++Frontend/2004-09-27-CompilerCrash.cpp2
26 files changed, 52 insertions, 0 deletions
diff --git a/test/C++Frontend/2003-08-20-ExceptionFail.cpp b/test/C++Frontend/2003-08-20-ExceptionFail.cpp
index 606a2f27d6..fd1c6ad4c2 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 34629d1a4c..2f90b3a105 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 01da73876f..cd7247e608 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 a64531c066..1142317a8b 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 a94ff03c68..594ccd4808 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 78d8d33e87..21d504c771 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 9ee0289658..b1373ba66d 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 7c4e23f40f..19435c6075 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 3d57a54a73..afe470cd11 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 7c8ac853e6..40c9c87ae1 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 8e3049c243..e07eb425d2 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 77f6b1f259..ed7c871a66 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 e33722878e..547a367d34 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 39ec5c76fa..19cb0ccbcc 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<class T>
struct super {
diff --git a/test/C++Frontend/2003-11-04-ArrayConstructors.cpp b/test/C++Frontend/2003-11-04-ArrayConstructors.cpp
index 10097f6d12..8c7c0bfa7d 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 1646f024db..8acf88ddba 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 <string>
void bar();
diff --git a/test/C++Frontend/2003-11-18-EnumArray.cpp b/test/C++Frontend/2003-11-18-EnumArray.cpp
index b4d861b2c3..6eaf9d66f2 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 a146cc1e05..ae76a6c637 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 bbe08378a9..83fe1b3e81 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 <vector>
std::vector<int> my_method ();
diff --git a/test/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp b/test/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp
index 60061d2107..16026c34b5 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 2f94d99640..8131baafae 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 b1677bc203..d512234022 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 3876527067..755d7c7621 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 4a7715d53e..be14b7f639 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 5d04d23ef2..4d31c3685e 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<typename Ty>
diff --git a/test/C++Frontend/2004-09-27-CompilerCrash.cpp b/test/C++Frontend/2004-09-27-CompilerCrash.cpp
index 71b3cc876d..726bd86a40 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 {} ;