Adding RUN lines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17529 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/C++Frontend/2003-08-20-ExceptionFail.cpp b/test/C++Frontend/2003-08-20-ExceptionFail.cpp
index 606a2f2..fd1c6ad 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 34629d1..2f90b3a 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 01da738..cd7247e 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 a64531c..1142317 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 a94ff03..594ccd4 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 78d8d33..21d504c 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 9ee0289..b1373ba 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 7c4e23f..19435c6 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 3d57a54..afe470c 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 7c8ac85..40c9c87 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 8e3049c..e07eb42 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 77f6b1f..ed7c871 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 e337228..547a367 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 39ec5c7..19cb0cc 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 10097f6..8c7c0bf 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 1646f02..8acf88d 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 b4d861b..6eaf9d6 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 a146cc1..ae76a6c 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 bbe0837..83fe1b3 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 60061d2..16026c3 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 2f94d99..8131baa 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 b1677bc..d512234 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 3876527..755d7c7 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 4a7715d..be14b7f 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 5d04d23..4d31c36 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 71b3cc8..726bd86 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 {} ;