aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CFrontend/2002-01-23-LoadQISIReloadFailure.c2
-rw-r--r--test/CFrontend/2002-01-24-ComplexSpaceInType.c2
-rw-r--r--test/CFrontend/2002-01-24-HandleCallInsnSEGV.c2
-rw-r--r--test/CFrontend/2002-02-13-ConditionalInCall.c2
-rw-r--r--test/CFrontend/2002-02-13-ReloadProblem.c2
-rw-r--r--test/CFrontend/2002-02-13-TypeVarNameCollision.c2
-rw-r--r--test/CFrontend/2002-02-13-UnnamedLocal.c2
-rw-r--r--test/CFrontend/2002-02-14-EntryNodePreds.c2
-rw-r--r--test/CFrontend/2002-02-16-RenamingTest.c2
-rw-r--r--test/CFrontend/2002-02-17-ArgumentAddress.c2
-rw-r--r--test/CFrontend/2002-02-18-64bitConstant.c2
-rw-r--r--test/CFrontend/2002-02-18-StaticData.c2
-rw-r--r--test/CFrontend/2002-03-11-LargeCharInString.c2
-rw-r--r--test/CFrontend/2002-03-12-ArrayInitialization.c2
-rw-r--r--test/CFrontend/2002-03-12-StructInitialize.c2
-rw-r--r--test/CFrontend/2002-03-12-StructInitializer.c2
-rw-r--r--test/CFrontend/2002-03-14-BrokenPHINode.c2
-rw-r--r--test/CFrontend/2002-03-14-BrokenSSA.c2
-rw-r--r--test/CFrontend/2002-03-14-QuotesInStrConst.c2
-rw-r--r--test/CFrontend/2002-04-07-SwitchStmt.c2
-rw-r--r--test/CFrontend/2002-04-08-LocalArray.c2
-rw-r--r--test/CFrontend/2002-04-09-StructRetVal.c2
-rw-r--r--test/CFrontend/2002-04-10-StructParameters.c2
-rw-r--r--test/CFrontend/2002-05-23-StaticValues.c2
-rw-r--r--test/CFrontend/2002-05-23-TypeNameCollision.c2
-rw-r--r--test/CFrontend/2002-05-24-Alloca.c2
-rw-r--r--test/CFrontend/2002-06-25-FWriteInterfaceFailure.c2
-rw-r--r--test/CFrontend/2002-07-14-MiscListTests.c2
-rw-r--r--test/CFrontend/2002-07-14-MiscTests.c2
-rw-r--r--test/CFrontend/2002-07-14-MiscTests2.c2
-rw-r--r--test/CFrontend/2002-07-14-MiscTests3.c2
-rw-r--r--test/CFrontend/2002-07-16-HardStringInit.c2
-rw-r--r--test/CFrontend/2002-07-17-StringConstant.c2
-rw-r--r--test/CFrontend/2002-07-29-Casts.c2
-rw-r--r--test/CFrontend/2002-07-30-SubregSetAssertion.c2
-rw-r--r--test/CFrontend/2002-07-30-UnionTest.c2
-rw-r--r--test/CFrontend/2002-07-30-VarArgsCallFailure.c2
-rw-r--r--test/CFrontend/2002-07-31-BadAssert.c2
-rw-r--r--test/CFrontend/2002-07-31-SubregFailure.c2
-rw-r--r--test/CFrontend/2002-08-02-UnionTest.c2
-rw-r--r--test/CFrontend/2002-08-19-RecursiveLocals.c2
-rw-r--r--test/CFrontend/2002-09-08-PointerShifts.c2
-rw-r--r--test/CFrontend/2002-09-18-UnionProblem.c2
-rw-r--r--test/CFrontend/2002-09-19-StarInLabel.c2
-rw-r--r--test/CFrontend/2002-10-12-TooManyArguments.c2
-rw-r--r--test/CFrontend/2002-11-07-Redefinition.c2
-rw-r--r--test/CFrontend/2002-12-15-GlobalBoolTest.c2
-rw-r--r--test/CFrontend/2002-12-15-GlobalConstantTest.c2
-rw-r--r--test/CFrontend/2002-12-15-GlobalRedefinition.c2
-rw-r--r--test/CFrontend/2002-12-15-StructParameters.c2
-rw-r--r--test/CFrontend/2003-01-30-UnionInit.c2
-rw-r--r--test/CFrontend/2003-02-12-NonlocalGoto.c2
-rw-r--r--test/CFrontend/2003-03-03-DeferredType.c2
-rw-r--r--test/CFrontend/2003-06-22-UnionCrash.c2
-rw-r--r--test/CFrontend/2003-06-23-GCC-fold-infinite-recursion.c2
-rw-r--r--test/CFrontend/2003-06-26-CFECrash.c2
-rw-r--r--test/CFrontend/2003-06-29-MultipleFunctionDefinition.c2
-rw-r--r--test/CFrontend/2003-08-18-SigSetJmp.c2
-rw-r--r--test/CFrontend/2003-08-18-StructAsValue.c2
-rw-r--r--test/CFrontend/2003-08-20-BadBitfieldRef.c2
-rw-r--r--test/CFrontend/2003-08-20-PrototypeMismatch.c2
-rw-r--r--test/CFrontend/2003-08-20-vfork-bug.c2
-rw-r--r--test/CFrontend/2003-08-21-BinOp-Type-Mismatch.c2
-rw-r--r--test/CFrontend/2003-08-21-StmtExpr.c2
-rw-r--r--test/CFrontend/2003-08-21-WideString.c2
-rw-r--r--test/CFrontend/2003-08-23-LocalUnionTest.c2
-rw-r--r--test/CFrontend/2003-08-29-BitFieldStruct.c2
-rw-r--r--test/CFrontend/2003-08-29-HugeCharConst.c2
-rw-r--r--test/CFrontend/2003-08-29-StructLayoutBug.c2
-rw-r--r--test/CFrontend/2003-08-30-AggregateInitializer.c2
-rw-r--r--test/CFrontend/2003-08-30-LargeIntegerBitfieldMember.c2
-rw-r--r--test/CFrontend/2003-09-18-BitfieldTests.c2
-rw-r--r--test/CFrontend/2003-09-30-StructLayout.c2
-rw-r--r--test/CFrontend/2003-10-02-UnionLValueError.c2
-rw-r--r--test/CFrontend/2003-10-06-NegateExprType.c2
-rw-r--r--test/CFrontend/2003-10-09-UnionInitializerBug.c2
-rw-r--r--test/CFrontend/2003-10-28-ident.c2
-rw-r--r--test/CFrontend/2003-10-29-AsmRename.c2
-rw-r--r--test/CFrontend/2003-11-01-C99-CompoundLiteral.c2
-rw-r--r--test/CFrontend/2003-11-01-EmptyStructCrash.c2
-rw-r--r--test/CFrontend/2003-11-01-GlobalUnionInit.c2
-rw-r--r--test/CFrontend/2003-11-04-EmptyStruct.c2
-rw-r--r--test/CFrontend/2003-11-04-OutOfMemory.c2
-rw-r--r--test/CFrontend/2003-11-12-VoidString.c2
-rw-r--r--test/CFrontend/2003-11-16-StaticArrayInit.c2
-rw-r--r--test/CFrontend/2003-11-18-CondExprLValue.c2
-rw-r--r--test/CFrontend/2003-11-19-BitFieldArray.c2
-rw-r--r--test/CFrontend/2003-11-20-Bitfields.c2
-rw-r--r--test/CFrontend/2003-11-20-ComplexDivision.c2
-rw-r--r--test/CFrontend/2003-11-20-UnionBitfield.c2
-rw-r--r--test/CFrontend/2003-11-26-PointerShift.c2
-rw-r--r--test/CFrontend/2003-11-27-ConstructorCast.c2
-rw-r--r--test/CFrontend/2003-11-27-UnionCtorInitialization.c2
-rw-r--r--test/CFrontend/2004-01-01-UnknownInitSize.c2
-rw-r--r--test/CFrontend/2004-01-08-ExternInlineRedefine.c2
-rw-r--r--test/CFrontend/2004-03-07-BitfieldCrash.c2
-rw-r--r--test/CFrontend/2004-03-07-ComplexDivEquals.c2
-rw-r--r--test/CFrontend/2004-03-09-LargeArrayInitializers.c2
-rw-r--r--test/CFrontend/2004-03-15-SimpleIndirectGoto.c2
-rw-r--r--test/CFrontend/2004-03-16-AsmRegisterCrash.c2
-rw-r--r--test/CFrontend/2004-05-07-VarArrays.c2
-rw-r--r--test/CFrontend/2004-05-21-IncompleteEnum.c2
-rw-r--r--test/CFrontend/2004-06-08-OpaqueStructArg.c2
-rw-r--r--test/CFrontend/2004-06-17-UnorderedBuiltins.c2
-rw-r--r--test/CFrontend/2004-06-18-VariableLengthArrayOfStructures.c2
-rw-r--r--test/CFrontend/2004-07-06-FunctionCast.c2
-rw-r--r--test/CFrontend/2004-08-06-LargeStructTest.c2
107 files changed, 214 insertions, 0 deletions
diff --git a/test/CFrontend/2002-01-23-LoadQISIReloadFailure.c b/test/CFrontend/2002-01-23-LoadQISIReloadFailure.c
index 55a17a3792..258d3cc0e3 100644
--- a/test/CFrontend/2002-01-23-LoadQISIReloadFailure.c
+++ b/test/CFrontend/2002-01-23-LoadQISIReloadFailure.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* Regression test. Just compile .c -> .ll to test */
int foo(void) {
unsigned char *pp;
diff --git a/test/CFrontend/2002-01-24-ComplexSpaceInType.c b/test/CFrontend/2002-01-24-ComplexSpaceInType.c
index 41c87d0dcb..9559d5b37b 100644
--- a/test/CFrontend/2002-01-24-ComplexSpaceInType.c
+++ b/test/CFrontend/2002-01-24-ComplexSpaceInType.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
// This caused generation of the following type name:
// %Array = uninitialized global [10 x %complex int]
//
diff --git a/test/CFrontend/2002-01-24-HandleCallInsnSEGV.c b/test/CFrontend/2002-01-24-HandleCallInsnSEGV.c
index 5ae9d63494..010a24771c 100644
--- a/test/CFrontend/2002-01-24-HandleCallInsnSEGV.c
+++ b/test/CFrontend/2002-01-24-HandleCallInsnSEGV.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
void *dlclose(void*);
void ap_os_dso_unload(void *handle)
diff --git a/test/CFrontend/2002-02-13-ConditionalInCall.c b/test/CFrontend/2002-02-13-ConditionalInCall.c
index 24a9f3e9e8..0dad6ff5c2 100644
--- a/test/CFrontend/2002-02-13-ConditionalInCall.c
+++ b/test/CFrontend/2002-02-13-ConditionalInCall.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* Test problem where bad code was generated with a ?: statement was
in a function call argument */
diff --git a/test/CFrontend/2002-02-13-ReloadProblem.c b/test/CFrontend/2002-02-13-ReloadProblem.c
index eec7844e75..ab9b56da3e 100644
--- a/test/CFrontend/2002-02-13-ReloadProblem.c
+++ b/test/CFrontend/2002-02-13-ReloadProblem.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* This triggered a problem in reload, fixed by disabling most of the
* steps of compilation in GCC. Before this change, the code went through
* the entire backend of GCC, even though it was unnecessary for LLVM output
diff --git a/test/CFrontend/2002-02-13-TypeVarNameCollision.c b/test/CFrontend/2002-02-13-TypeVarNameCollision.c
index ec00527930..f4daa2186b 100644
--- a/test/CFrontend/2002-02-13-TypeVarNameCollision.c
+++ b/test/CFrontend/2002-02-13-TypeVarNameCollision.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* This testcase causes a symbol table collision. Type names and variable
* names should be in distinct namespaces
*/
diff --git a/test/CFrontend/2002-02-13-UnnamedLocal.c b/test/CFrontend/2002-02-13-UnnamedLocal.c
index 700f5642d3..6fdc7efdd3 100644
--- a/test/CFrontend/2002-02-13-UnnamedLocal.c
+++ b/test/CFrontend/2002-02-13-UnnamedLocal.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* Testcase for a problem where GCC allocated xqic to a register,
* and did not have a VAR_DECL that explained the stack slot to LLVM.
* Now the LLVM code synthesizes a stack slot if one is presented that
diff --git a/test/CFrontend/2002-02-14-EntryNodePreds.c b/test/CFrontend/2002-02-14-EntryNodePreds.c
index 8b6f4e0840..f1e01515fd 100644
--- a/test/CFrontend/2002-02-14-EntryNodePreds.c
+++ b/test/CFrontend/2002-02-14-EntryNodePreds.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* GCC Used to generate code that contained a branch to the entry node of
* the do_merge function. This is illegal LLVM code. To fix this, GCC now
* inserts an entry node regardless of whether or not it has to insert allocas.
diff --git a/test/CFrontend/2002-02-16-RenamingTest.c b/test/CFrontend/2002-02-16-RenamingTest.c
index 47931b3a01..952af90c87 100644
--- a/test/CFrontend/2002-02-16-RenamingTest.c
+++ b/test/CFrontend/2002-02-16-RenamingTest.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* test that locals are renamed with . notation */
void abc(void *);
diff --git a/test/CFrontend/2002-02-17-ArgumentAddress.c b/test/CFrontend/2002-02-17-ArgumentAddress.c
index 78378de322..937929559f 100644
--- a/test/CFrontend/2002-02-17-ArgumentAddress.c
+++ b/test/CFrontend/2002-02-17-ArgumentAddress.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
int test(int X) {
return X;
}
diff --git a/test/CFrontend/2002-02-18-64bitConstant.c b/test/CFrontend/2002-02-18-64bitConstant.c
index 3c3a603486..f2ed121652 100644
--- a/test/CFrontend/2002-02-18-64bitConstant.c
+++ b/test/CFrontend/2002-02-18-64bitConstant.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* GCC wasn't handling 64 bit constants right fixed */
void main() {
diff --git a/test/CFrontend/2002-02-18-StaticData.c b/test/CFrontend/2002-02-18-StaticData.c
index 78614a71fa..10439c3730 100644
--- a/test/CFrontend/2002-02-18-StaticData.c
+++ b/test/CFrontend/2002-02-18-StaticData.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
double FOO = 17;
double BAR = 12.0;
diff --git a/test/CFrontend/2002-03-11-LargeCharInString.c b/test/CFrontend/2002-03-11-LargeCharInString.c
index 4e640d5c45..8ae86436fe 100644
--- a/test/CFrontend/2002-03-11-LargeCharInString.c
+++ b/test/CFrontend/2002-03-11-LargeCharInString.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
#include <string.h>
int test(char *X) {
diff --git a/test/CFrontend/2002-03-12-ArrayInitialization.c b/test/CFrontend/2002-03-12-ArrayInitialization.c
index ebb5aa3dfb..d6cf44625b 100644
--- a/test/CFrontend/2002-03-12-ArrayInitialization.c
+++ b/test/CFrontend/2002-03-12-ArrayInitialization.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* GCC would generate bad code if not enough initializers are
specified for an array.
*/
diff --git a/test/CFrontend/2002-03-12-StructInitialize.c b/test/CFrontend/2002-03-12-StructInitialize.c
index 38308e37f8..5174ad4906 100644
--- a/test/CFrontend/2002-03-12-StructInitialize.c
+++ b/test/CFrontend/2002-03-12-StructInitialize.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
typedef struct Connection_Type {
long to;
diff --git a/test/CFrontend/2002-03-12-StructInitializer.c b/test/CFrontend/2002-03-12-StructInitializer.c
index de2d84781c..cf2ba4e8cf 100644
--- a/test/CFrontend/2002-03-12-StructInitializer.c
+++ b/test/CFrontend/2002-03-12-StructInitializer.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* GCC was not emitting string constants of the correct length when
* embedded into a structure field like this. It thought the strlength
* was -1.
diff --git a/test/CFrontend/2002-03-14-BrokenPHINode.c b/test/CFrontend/2002-03-14-BrokenPHINode.c
index 8ab61b8574..16d9bc7814 100644
--- a/test/CFrontend/2002-03-14-BrokenPHINode.c
+++ b/test/CFrontend/2002-03-14-BrokenPHINode.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* GCC was generating PHI nodes with an arity < #pred of the basic block the
* PHI node lived in. This was breaking LLVM because the number of entries
* in a PHI node must equal the number of predecessors for a basic block.
diff --git a/test/CFrontend/2002-03-14-BrokenSSA.c b/test/CFrontend/2002-03-14-BrokenSSA.c
index 457d369343..01f259738e 100644
--- a/test/CFrontend/2002-03-14-BrokenSSA.c
+++ b/test/CFrontend/2002-03-14-BrokenSSA.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* This code used to break GCC's SSA computation code. It would create
uses of B & C that are not dominated by their definitions. See:
http://gcc.gnu.org/ml/gcc/2002-03/msg00697.html
diff --git a/test/CFrontend/2002-03-14-QuotesInStrConst.c b/test/CFrontend/2002-03-14-QuotesInStrConst.c
index c18157c2b2..2034848876 100644
--- a/test/CFrontend/2002-03-14-QuotesInStrConst.c
+++ b/test/CFrontend/2002-03-14-QuotesInStrConst.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* GCC was not escaping quotes in string constants correctly, so this would
* get emitted:
* %.LC1 = internal global [32 x sbyte] c"*** Word "%s" on line %d is not\00"
diff --git a/test/CFrontend/2002-04-07-SwitchStmt.c b/test/CFrontend/2002-04-07-SwitchStmt.c
index 178076c852..79632c9eb8 100644
--- a/test/CFrontend/2002-04-07-SwitchStmt.c
+++ b/test/CFrontend/2002-04-07-SwitchStmt.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
int printf(const char *, ...);
int foo();
diff --git a/test/CFrontend/2002-04-08-LocalArray.c b/test/CFrontend/2002-04-08-LocalArray.c
index 27a9c73b36..af6ebd6bdf 100644
--- a/test/CFrontend/2002-04-08-LocalArray.c
+++ b/test/CFrontend/2002-04-08-LocalArray.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* GCC is not outputting the static array to the LLVM backend, so bad things
* happen. Note that if this is defined static, everything seems fine.
*/
diff --git a/test/CFrontend/2002-04-09-StructRetVal.c b/test/CFrontend/2002-04-09-StructRetVal.c
index 8ba8bfa4d5..c655e4a4d0 100644
--- a/test/CFrontend/2002-04-09-StructRetVal.c
+++ b/test/CFrontend/2002-04-09-StructRetVal.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
struct S {
int i;
short s1, s2;
diff --git a/test/CFrontend/2002-04-10-StructParameters.c b/test/CFrontend/2002-04-10-StructParameters.c
index f1175946a0..9db6a132bc 100644
--- a/test/CFrontend/2002-04-10-StructParameters.c
+++ b/test/CFrontend/2002-04-10-StructParameters.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
typedef struct {
char p;
diff --git a/test/CFrontend/2002-05-23-StaticValues.c b/test/CFrontend/2002-05-23-StaticValues.c
index 821dbbb73d..79d46ae8ab 100644
--- a/test/CFrontend/2002-05-23-StaticValues.c
+++ b/test/CFrontend/2002-05-23-StaticValues.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* Make sure the frontend is correctly marking static stuff as internal! */
int X;
diff --git a/test/CFrontend/2002-05-23-TypeNameCollision.c b/test/CFrontend/2002-05-23-TypeNameCollision.c
index 35508c95ce..43faf97b1e 100644
--- a/test/CFrontend/2002-05-23-TypeNameCollision.c
+++ b/test/CFrontend/2002-05-23-TypeNameCollision.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* Testcase for when struct tag conflicts with typedef name... grr */
typedef struct foo {
diff --git a/test/CFrontend/2002-05-24-Alloca.c b/test/CFrontend/2002-05-24-Alloca.c
index 698452e574..0a44db12ea 100644
--- a/test/CFrontend/2002-05-24-Alloca.c
+++ b/test/CFrontend/2002-05-24-Alloca.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/test/CFrontend/2002-06-25-FWriteInterfaceFailure.c b/test/CFrontend/2002-06-25-FWriteInterfaceFailure.c
index 2f957a218e..654709299d 100644
--- a/test/CFrontend/2002-06-25-FWriteInterfaceFailure.c
+++ b/test/CFrontend/2002-06-25-FWriteInterfaceFailure.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
#include <stdio.h>
void test() {
diff --git a/test/CFrontend/2002-07-14-MiscListTests.c b/test/CFrontend/2002-07-14-MiscListTests.c
index 34edea18f3..baae585f6c 100644
--- a/test/CFrontend/2002-07-14-MiscListTests.c
+++ b/test/CFrontend/2002-07-14-MiscListTests.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
// Test list stuff
void *malloc(unsigned);
diff --git a/test/CFrontend/2002-07-14-MiscTests.c b/test/CFrontend/2002-07-14-MiscTests.c
index 980a8a4504..e78dbd72eb 100644
--- a/test/CFrontend/2002-07-14-MiscTests.c
+++ b/test/CFrontend/2002-07-14-MiscTests.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* These are random tests that I used when working on the GCC frontend
originally. */
diff --git a/test/CFrontend/2002-07-14-MiscTests2.c b/test/CFrontend/2002-07-14-MiscTests2.c
index b7b3d5cdd5..ac58926abf 100644
--- a/test/CFrontend/2002-07-14-MiscTests2.c
+++ b/test/CFrontend/2002-07-14-MiscTests2.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
// Test ?: in function calls
extern fp(int, char*);
diff --git a/test/CFrontend/2002-07-14-MiscTests3.c b/test/CFrontend/2002-07-14-MiscTests3.c
index 95a0045a7d..a19e2d54c9 100644
--- a/test/CFrontend/2002-07-14-MiscTests3.c
+++ b/test/CFrontend/2002-07-14-MiscTests3.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
void *malloc(unsigned);
diff --git a/test/CFrontend/2002-07-16-HardStringInit.c b/test/CFrontend/2002-07-16-HardStringInit.c
index 81a7bad403..d1d03216ce 100644
--- a/test/CFrontend/2002-07-16-HardStringInit.c
+++ b/test/CFrontend/2002-07-16-HardStringInit.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
char auto_kibitz_list[100][20] = {
{"diepx"},
{"ferret"},
diff --git a/test/CFrontend/2002-07-17-StringConstant.c b/test/CFrontend/2002-07-17-StringConstant.c
index 1c323f1f09..8a392033f3 100644
--- a/test/CFrontend/2002-07-17-StringConstant.c
+++ b/test/CFrontend/2002-07-17-StringConstant.c
@@ -1,2 +1,4 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
char * foo() { return "\\begin{"; }
diff --git a/test/CFrontend/2002-07-29-Casts.c b/test/CFrontend/2002-07-29-Casts.c
index 3666d0b31e..6794e80b5e 100644
--- a/test/CFrontend/2002-07-29-Casts.c
+++ b/test/CFrontend/2002-07-29-Casts.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
diff --git a/test/CFrontend/2002-07-30-SubregSetAssertion.c b/test/CFrontend/2002-07-30-SubregSetAssertion.c
index e00a3ce945..7eab19b045 100644
--- a/test/CFrontend/2002-07-30-SubregSetAssertion.c
+++ b/test/CFrontend/2002-07-30-SubregSetAssertion.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
union X {
void *B;
diff --git a/test/CFrontend/2002-07-30-UnionTest.c b/test/CFrontend/2002-07-30-UnionTest.c
index ffb1d5b043..634ed3f61b 100644
--- a/test/CFrontend/2002-07-30-UnionTest.c
+++ b/test/CFrontend/2002-07-30-UnionTest.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
union X;
struct Empty {};
union F {};
diff --git a/test/CFrontend/2002-07-30-VarArgsCallFailure.c b/test/CFrontend/2002-07-30-VarArgsCallFailure.c
index cdce478adc..14c879c7a9 100644
--- a/test/CFrontend/2002-07-30-VarArgsCallFailure.c
+++ b/test/CFrontend/2002-07-30-VarArgsCallFailure.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
int tcount;
void test(char *, const char*, int);
void foo() {
diff --git a/test/CFrontend/2002-07-31-BadAssert.c b/test/CFrontend/2002-07-31-BadAssert.c
index 9c4e5f67e6..5801d03a09 100644
--- a/test/CFrontend/2002-07-31-BadAssert.c
+++ b/test/CFrontend/2002-07-31-BadAssert.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
typedef struct
{
unsigned char type; /* Indicates, NORMAL, SUBNORMAL, etc. */
diff --git a/test/CFrontend/2002-07-31-SubregFailure.c b/test/CFrontend/2002-07-31-SubregFailure.c
index 1ddac3c7d0..15573f9128 100644
--- a/test/CFrontend/2002-07-31-SubregFailure.c
+++ b/test/CFrontend/2002-07-31-SubregFailure.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
typedef union {
long (*ap)[4];
diff --git a/test/CFrontend/2002-08-02-UnionTest.c b/test/CFrontend/2002-08-02-UnionTest.c
index 25bf157056..b9e2c2e050 100644
--- a/test/CFrontend/2002-08-02-UnionTest.c
+++ b/test/CFrontend/2002-08-02-UnionTest.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* In this testcase, the return value of foo() is being promotedto a register
* which breaks stuff
*/
diff --git a/test/CFrontend/2002-08-19-RecursiveLocals.c b/test/CFrontend/2002-08-19-RecursiveLocals.c
index 5e89419f78..e5007af725 100644
--- a/test/CFrontend/2002-08-19-RecursiveLocals.c
+++ b/test/CFrontend/2002-08-19-RecursiveLocals.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* This testcase doesn't actually test a bug, it's just the result of me
* figuring out the syntax for forward declaring a static variable. */
struct list {
diff --git a/test/CFrontend/2002-09-08-PointerShifts.c b/test/CFrontend/2002-09-08-PointerShifts.c
index ce2c2adeb6..e58d858c37 100644
--- a/test/CFrontend/2002-09-08-PointerShifts.c
+++ b/test/CFrontend/2002-09-08-PointerShifts.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
int foo(int *A, unsigned X) {
return A[X];
diff --git a/test/CFrontend/2002-09-18-UnionProblem.c b/test/CFrontend/2002-09-18-UnionProblem.c
index e914e4f5b2..56ec6cec8e 100644
--- a/test/CFrontend/2002-09-18-UnionProblem.c
+++ b/test/CFrontend/2002-09-18-UnionProblem.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
struct DWstruct {
char high, low;
diff --git a/test/CFrontend/2002-09-19-StarInLabel.c b/test/CFrontend/2002-09-19-StarInLabel.c
index b16a39d7d8..86a2571d57 100644
--- a/test/CFrontend/2002-09-19-StarInLabel.c
+++ b/test/CFrontend/2002-09-19-StarInLabel.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
extern void start() __asm__("start");
extern void _start() __asm__("_start");
extern void __start() __asm__("__start");
diff --git a/test/CFrontend/2002-10-12-TooManyArguments.c b/test/CFrontend/2002-10-12-TooManyArguments.c
index 0a1b15711b..0c31f2b90a 100644
--- a/test/CFrontend/2002-10-12-TooManyArguments.c
+++ b/test/CFrontend/2002-10-12-TooManyArguments.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
void foo() {}
diff --git a/test/CFrontend/2002-11-07-Redefinition.c b/test/CFrontend/2002-11-07-Redefinition.c
index 4ac88b8f14..2be3c8ff1d 100644
--- a/test/CFrontend/2002-11-07-Redefinition.c
+++ b/test/CFrontend/2002-11-07-Redefinition.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* Provide Declarations */
#ifndef NULL
diff --git a/test/CFrontend/2002-12-15-GlobalBoolTest.c b/test/CFrontend/2002-12-15-GlobalBoolTest.c
index 5d529dccd0..6b27391d9b 100644
--- a/test/CFrontend/2002-12-15-GlobalBoolTest.c
+++ b/test/CFrontend/2002-12-15-GlobalBoolTest.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
_Bool X = 0;
diff --git a/test/CFrontend/2002-12-15-GlobalConstantTest.c b/test/CFrontend/2002-12-15-GlobalConstantTest.c
index 3b17941a73..a5a679db67 100644
--- a/test/CFrontend/2002-12-15-GlobalConstantTest.c
+++ b/test/CFrontend/2002-12-15-GlobalConstantTest.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
const char *W = "foo";
const int X = 7;
diff --git a/test/CFrontend/2002-12-15-GlobalRedefinition.c b/test/CFrontend/2002-12-15-GlobalRedefinition.c
index 9899764af6..39632a1506 100644
--- a/test/CFrontend/2002-12-15-GlobalRedefinition.c
+++ b/test/CFrontend/2002-12-15-GlobalRedefinition.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
extern char algbrfile[9];
char algbrfile[9] = "abcdefgh";
diff --git a/test/CFrontend/2002-12-15-StructParameters.c b/test/CFrontend/2002-12-15-StructParameters.c
index 64e5df30a8..c85dab1cd1 100644
--- a/test/CFrontend/2002-12-15-StructParameters.c
+++ b/test/CFrontend/2002-12-15-StructParameters.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
typedef struct
{
void *stack;
diff --git a/test/CFrontend/2003-01-30-UnionInit.c b/test/CFrontend/2003-01-30-UnionInit.c
index a6557859fd..4fc2717346 100644
--- a/test/CFrontend/2003-01-30-UnionInit.c
+++ b/test/CFrontend/2003-01-30-UnionInit.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
// XFAIL: linux,sun,darwin
union foo {
diff --git a/test/CFrontend/2003-02-12-NonlocalGoto.c b/test/CFrontend/2003-02-12-NonlocalGoto.c
index 16373af1a8..b5813308a1 100644
--- a/test/CFrontend/2003-02-12-NonlocalGoto.c
+++ b/test/CFrontend/2003-02-12-NonlocalGoto.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
// XFAIL: *
/* It is unlikely that LLVM will ever support nested functions, but if it does,
here is a testcase. */
diff --git a/test/CFrontend/2003-03-03-DeferredType.c b/test/CFrontend/2003-03-03-DeferredType.c
index b348746618..fa51991b30 100644
--- a/test/CFrontend/2003-03-03-DeferredType.c
+++ b/test/CFrontend/2003-03-03-DeferredType.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
diff --git a/test/CFrontend/2003-06-22-UnionCrash.c b/test/CFrontend/2003-06-22-UnionCrash.c
index e4fb3f068d..dab0716ae6 100644
--- a/test/CFrontend/2003-06-22-UnionCrash.c
+++ b/test/CFrontend/2003-06-22-UnionCrash.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
struct Blend_Map_Entry {
union {
float Colour[5];
diff --git a/test/CFrontend/2003-06-23-GCC-fold-infinite-recursion.c b/test/CFrontend/2003-06-23-GCC-fold-infinite-recursion.c
index 3e3c639a93..ba66276683 100644
--- a/test/CFrontend/2003-06-23-GCC-fold-infinite-recursion.c
+++ b/test/CFrontend/2003-06-23-GCC-fold-infinite-recursion.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
double Test(double A, double B, double C, double D) {
return -(A-B) - (C-D);
}
diff --git a/test/CFrontend/2003-06-26-CFECrash.c b/test/CFrontend/2003-06-26-CFECrash.c
index e951f35134..bb6977f483 100644
--- a/test/CFrontend/2003-06-26-CFECrash.c
+++ b/test/CFrontend/2003-06-26-CFECrash.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
typedef struct min_info {
long offset;
unsigned file_attr;
diff --git a/test/CFrontend/2003-06-29-MultipleFunctionDefinition.c b/test/CFrontend/2003-06-29-MultipleFunctionDefinition.c
index 588da7198a..b7bc803306 100644
--- a/test/CFrontend/2003-06-29-MultipleFunctionDefinition.c
+++ b/test/CFrontend/2003-06-29-MultipleFunctionDefinition.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/* This is apparently legal C.
*/
extern __inline__ void test() { }
diff --git a/test/CFrontend/2003-08-18-SigSetJmp.c b/test/CFrontend/2003-08-18-SigSetJmp.c
index fb25484192..b7f4553f41 100644
--- a/test/CFrontend/2003-08-18-SigSetJmp.c
+++ b/test/CFrontend/2003-08-18-SigSetJmp.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
#include <setjmp.h>
diff --git a/test/CFrontend/2003-08-18-StructAsValue.c b/test/CFrontend/2003-08-18-StructAsValue.c
index fbf6988fa2..649eadc4e4 100644
--- a/test/CFrontend/2003-08-18-StructAsValue.c
+++ b/test/CFrontend/2003-08-18-StructAsValue.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
typedef struct {
int op;
diff --git a/test/CFrontend/2003-08-20-BadBitfieldRef.c b/test/CFrontend/2003-08-20-BadBitfieldRef.c
index f4458cbaf1..58cf1bc334 100644
--- a/test/CFrontend/2003-08-20-BadBitfieldRef.c
+++ b/test/CFrontend/2003-08-20-BadBitfieldRef.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
void foo()
{
char *ap;
diff --git a/test/CFrontend/2003-08-20-PrototypeMismatch.c b/test/CFrontend/2003-08-20-PrototypeMismatch.c
index b2535c7a53..8358a2f6fd 100644
--- a/test/CFrontend/2003-08-20-PrototypeMismatch.c
+++ b/test/CFrontend/2003-08-20-PrototypeMismatch.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
static int foo(int);
diff --git a/test/CFrontend/2003-08-20-vfork-bug.c b/test/CFrontend/2003-08-20-vfork-bug.c
index ac6db4672e..575bfd6c19 100644
--- a/test/CFrontend/2003-08-20-vfork-bug.c
+++ b/test/CFrontend/2003-08-20-vfork-bug.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
extern int vfork(void);
test() {
vfork();
diff --git a/test/CFrontend/2003-08-21-BinOp-Type-Mismatch.c b/test/CFrontend/2003-08-21-BinOp-Type-Mismatch.c
index 0e431c7a66..8829652cb1 100644
--- a/test/CFrontend/2003-08-21-BinOp-Type-Mismatch.c
+++ b/test/CFrontend/2003-08-21-BinOp-Type-Mismatch.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
struct bar;
void foo()
diff --git a/test/CFrontend/2003-08-21-StmtExpr.c b/test/CFrontend/2003-08-21-StmtExpr.c
index a5eefe70b2..878ed47348 100644
--- a/test/CFrontend/2003-08-21-StmtExpr.c
+++ b/test/CFrontend/2003-08-21-StmtExpr.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
typedef struct {
unsigned long val;
diff --git a/test/CFrontend/2003-08-21-WideString.c b/test/CFrontend/2003-08-21-WideString.c
index cdbc3a93f9..0a833dcac5 100644
--- a/test/CFrontend/2003-08-21-WideString.c
+++ b/test/CFrontend/2003-08-21-WideString.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
struct {
int *name;
} syms = { L"NUL" };
diff --git a/test/CFrontend/2003-08-23-LocalUnionTest.c b/test/CFrontend/2003-08-23-LocalUnionTest.c
index 2558f98152..dc27802623 100644
--- a/test/CFrontend/2003-08-23-LocalUnionTest.c
+++ b/test/CFrontend/2003-08-23-LocalUnionTest.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
union foo { int X; };
diff --git a/test/CFrontend/2003-08-29-BitFieldStruct.c b/test/CFrontend/2003-08-29-BitFieldStruct.c
index f2a443ff57..8c303e8f2e 100644
--- a/test/CFrontend/2003-08-29-BitFieldStruct.c
+++ b/test/CFrontend/2003-08-29-BitFieldStruct.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
struct Word {
short bar;
short baz;
diff --git a/test/CFrontend/2003-08-29-HugeCharConst.c b/test/CFrontend/2003-08-29-HugeCharConst.c
index 83854d2ab5..a997994e91 100644
--- a/test/CFrontend/2003-08-29-HugeCharConst.c
+++ b/test/CFrontend/2003-08-29-HugeCharConst.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
void foo() {
unsigned char int_latin1[] = "f\200\372b\200\343\200\340";
}
diff --git a/test/CFrontend/2003-08-29-StructLayoutBug.c b/test/CFrontend/2003-08-29-StructLayoutBug.c
index 7572d2737c..a5f6fb106f 100644
--- a/test/CFrontend/2003-08-29-StructLayoutBug.c
+++ b/test/CFrontend/2003-08-29-StructLayoutBug.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
struct foo {
unsigned int I:1;
unsigned char J[1];
diff --git a/test/CFrontend/2003-08-30-AggregateInitializer.c b/test/CFrontend/2003-08-30-AggregateInitializer.c
index c7a0f806b8..ab2f61012d 100644
--- a/test/CFrontend/2003-08-30-AggregateInitializer.c
+++ b/test/CFrontend/2003-08-30-AggregateInitializer.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
// XFAIL: linux,sun,darwin
struct istruct {
unsigned char C;
diff --git a/test/CFrontend/2003-08-30-LargeIntegerBitfieldMember.c b/test/CFrontend/2003-08-30-LargeIntegerBitfieldMember.c
index fa81802b71..f67aee4c10 100644
--- a/test/CFrontend/2003-08-30-LargeIntegerBitfieldMember.c
+++ b/test/CFrontend/2003-08-30-LargeIntegerBitfieldMember.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
struct foo {
unsigned int I:1;
unsigned char J[1][123];
diff --git a/test/CFrontend/2003-09-18-BitfieldTests.c b/test/CFrontend/2003-09-18-BitfieldTests.c
index e8435ca70f..3a7879bfb5 100644
--- a/test/CFrontend/2003-09-18-BitfieldTests.c
+++ b/test/CFrontend/2003-09-18-BitfieldTests.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
typedef struct BF {
int A : 1;
diff --git a/test/CFrontend/2003-09-30-StructLayout.c b/test/CFrontend/2003-09-30-StructLayout.c
index 2dc81225e9..3a4016606e 100644
--- a/test/CFrontend/2003-09-30-StructLayout.c
+++ b/test/CFrontend/2003-09-30-StructLayout.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
enum En {
ENUM_VAL
};
diff --git a/test/CFrontend/2003-10-02-UnionLValueError.c b/test/CFrontend/2003-10-02-UnionLValueError.c
index 82693c729b..732f93a773 100644
--- a/test/CFrontend/2003-10-02-UnionLValueError.c
+++ b/test/CFrontend/2003-10-02-UnionLValueError.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
union U{
int i[8];
char s[80];
diff --git a/test/CFrontend/2003-10-06-NegateExprType.c b/test/CFrontend/2003-10-06-NegateExprType.c
index 56c5e30f4a..02386031b7 100644
--- a/test/CFrontend/2003-10-06-NegateExprType.c
+++ b/test/CFrontend/2003-10-06-NegateExprType.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
extern int A[10];
void Func(int *B) {
diff --git a/test/CFrontend/2003-10-09-UnionInitializerBug.c b/test/CFrontend/2003-10-09-UnionInitializerBug.c
index e574a1931d..90dbd37f0d 100644
--- a/test/CFrontend/2003-10-09-UnionInitializerBug.c
+++ b/test/CFrontend/2003-10-09-UnionInitializerBug.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
struct Foo {
unsigned a;
unsigned b;
diff --git a/test/CFrontend/2003-10-28-ident.c b/test/CFrontend/2003-10-28-ident.c
index 726d7cf805..9911dfd1ff 100644
--- a/test/CFrontend/2003-10-28-ident.c
+++ b/test/CFrontend/2003-10-28-ident.c
@@ -1,2 +1,4 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
#ident "foo"
diff --git a/test/CFrontend/2003-10-29-AsmRename.c b/test/CFrontend/2003-10-29-AsmRename.c
index fe96359fdc..5750cedd02 100644
--- a/test/CFrontend/2003-10-29-AsmRename.c
+++ b/test/CFrontend/2003-10-29-AsmRename.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
struct foo { int X; };
struct bar { int Y; };
diff --git a/test/CFrontend/2003-11-01-C99-CompoundLiteral.c b/test/CFrontend/2003-11-01-C99-CompoundLiteral.c
index cf53e8028e..a0aa69858c 100644
--- a/test/CFrontend/2003-11-01-C99-CompoundLiteral.c
+++ b/test/CFrontend/2003-11-01-C99-CompoundLiteral.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
typedef struct { int foo; } spinlock_t;
typedef struct wait_queue_head_t { spinlock_t lock; } wait_queue_head_t;
void call_usermodehelper(void) {
diff --git a/test/CFrontend/2003-11-01-EmptyStructCrash.c b/test/CFrontend/2003-11-01-EmptyStructCrash.c
index d65b3280f0..fb6993bb20 100644
--- a/test/CFrontend/2003-11-01-EmptyStructCrash.c
+++ b/test/CFrontend/2003-11-01-EmptyStructCrash.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
typedef struct { } the_coolest_struct_in_the_world;
extern the_coolest_struct_in_the_world xyzzy;
void *foo() { return &xyzzy; }
diff --git a/test/CFrontend/2003-11-01-GlobalUnionInit.c b/test/CFrontend/2003-11-01-GlobalUnionInit.c
index 83ee8c0417..be7788d1ab 100644
--- a/test/CFrontend/2003-11-01-GlobalUnionInit.c
+++ b/test/CFrontend/2003-11-01-GlobalUnionInit.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
union bdflush_param {
struct { int x; } b_un;
int y[1];
diff --git a/test/CFrontend/2003-11-04-EmptyStruct.c b/test/CFrontend/2003-11-04-EmptyStruct.c
index f8b8f5f48f..c7a0164159 100644
--- a/test/CFrontend/2003-11-04-EmptyStruct.c
+++ b/test/CFrontend/2003-11-04-EmptyStruct.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
typedef struct { } rwlock_t;
struct fs_struct { rwlock_t lock; int umask; };
void __copy_fs_struct(struct fs_struct *fs) { fs->lock = (rwlock_t) { }; }
diff --git a/test/CFrontend/2003-11-04-OutOfMemory.c b/test/CFrontend/2003-11-04-OutOfMemory.c
index 4c2721bd98..6a42e160f2 100644
--- a/test/CFrontend/2003-11-04-OutOfMemory.c
+++ b/test/CFrontend/2003-11-04-OutOfMemory.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
void schedule_timeout(signed long timeout)
{
switch (timeout)
diff --git a/test/CFrontend/2003-11-12-VoidString.c b/test/CFrontend/2003-11-12-VoidString.c
index 041973eb98..db2e84bbbb 100644
--- a/test/CFrontend/2003-11-12-VoidString.c
+++ b/test/CFrontend/2003-11-12-VoidString.c
@@ -1,2 +1,4 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
void query_newnamebuf(void) { ((void)"query_newnamebuf"); }
diff --git a/test/CFrontend/2003-11-16-StaticArrayInit.c b/test/CFrontend/2003-11-16-StaticArrayInit.c
index 399b4e8a8e..2b42e38dc9 100644
--- a/test/CFrontend/2003-11-16-StaticArrayInit.c
+++ b/test/CFrontend/2003-11-16-StaticArrayInit.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
void bar () {
static char x[10];
static char *xend = x + 10;
diff --git a/test/CFrontend/2003-11-18-CondExprLValue.c b/test/CFrontend/2003-11-18-CondExprLValue.c
index fbafacb2ce..ec000a443d 100644
--- a/test/CFrontend/2003-11-18-CondExprLValue.c
+++ b/test/CFrontend/2003-11-18-CondExprLValue.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
typedef struct { unsigned long pgprot; } pgprot_t;
void split_large_page(unsigned long addr, pgprot_t prot)
diff --git a/test/CFrontend/2003-11-19-BitFieldArray.c b/test/CFrontend/2003-11-19-BitFieldArray.c
index bf37d190e1..9d54112e86 100644
--- a/test/CFrontend/2003-11-19-BitFieldArray.c
+++ b/test/CFrontend/2003-11-19-BitFieldArray.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
struct _GIOChannel {
int write_buf;
char partial_write_buf[6];
diff --git a/test/CFrontend/2003-11-20-Bitfields.c b/test/CFrontend/2003-11-20-Bitfields.c
index 7fb3df507c..c9ea0dc7f1 100644
--- a/test/CFrontend/2003-11-20-Bitfields.c
+++ b/test/CFrontend/2003-11-20-Bitfields.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
struct face_cachel {
unsigned int reverse :1;
unsigned char font_specified[1];
diff --git a/test/CFrontend/2003-11-20-ComplexDivision.c b/test/CFrontend/2003-11-20-ComplexDivision.c
index 3204271e4e..cd548c0313 100644
--- a/test/CFrontend/2003-11-20-ComplexDivision.c
+++ b/test/CFrontend/2003-11-20-ComplexDivision.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
int test() {
__complex__ double C;
double D;
diff --git a/test/CFrontend/2003-11-20-UnionBitfield.c b/test/CFrontend/2003-11-20-UnionBitfield.c
index 1bbf26f510..12e7df5890 100644
--- a/test/CFrontend/2003-11-20-UnionBitfield.c
+++ b/test/CFrontend/2003-11-20-UnionBitfield.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
struct printf_spec {
unsigned int minus_flag:1;
char converter;
diff --git a/test/CFrontend/2003-11-26-PointerShift.c b/test/CFrontend/2003-11-26-PointerShift.c
index 46dc259431..079f6903a2 100644
--- a/test/CFrontend/2003-11-26-PointerShift.c
+++ b/test/CFrontend/2003-11-26-PointerShift.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
unsigned long do_csum(const unsigned char *buff, int len, unsigned long result) {
if (2 & (unsigned long) buff) result += 1;
return result;
diff --git a/test/CFrontend/2003-11-27-ConstructorCast.c b/test/CFrontend/2003-11-27-ConstructorCast.c
index 33a9426a97..3780e7a4b9 100644
--- a/test/CFrontend/2003-11-27-ConstructorCast.c
+++ b/test/CFrontend/2003-11-27-ConstructorCast.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
struct i387_soft_struct {
long cwd;
};
diff --git a/test/CFrontend/2003-11-27-UnionCtorInitialization.c b/test/CFrontend/2003-11-27-UnionCtorInitialization.c
index 27a1ec7c5f..472b591585 100644
--- a/test/CFrontend/2003-11-27-UnionCtorInitialization.c
+++ b/test/CFrontend/2003-11-27-UnionCtorInitialization.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
struct i387_soft_struct {
long cwd;
long twd;
diff --git a/test/CFrontend/2004-01-01-UnknownInitSize.c b/test/CFrontend/2004-01-01-UnknownInitSize.c
index f9b49ccfa1..863305ecb4 100644
--- a/test/CFrontend/2004-01-01-UnknownInitSize.c
+++ b/test/CFrontend/2004-01-01-UnknownInitSize.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/*
* This regression test ensures that the C front end can compile initializers
* even when it cannot determine the size (as below).
diff --git a/test/CFrontend/2004-01-08-ExternInlineRedefine.c b/test/CFrontend/2004-01-08-ExternInlineRedefine.c
index 27613caa03..b3907ee993 100644
--- a/test/CFrontend/2004-01-08-ExternInlineRedefine.c
+++ b/test/CFrontend/2004-01-08-ExternInlineRedefine.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
extern __inline long int
__strtol_l (int a)
diff --git a/test/CFrontend/2004-03-07-BitfieldCrash.c b/test/CFrontend/2004-03-07-BitfieldCrash.c
index 42b3bb37a1..f94c17e4dd 100644
--- a/test/CFrontend/2004-03-07-BitfieldCrash.c
+++ b/test/CFrontend/2004-03-07-BitfieldCrash.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
/*
* XFAIL: linux
*/
diff --git a/test/CFrontend/2004-03-07-ComplexDivEquals.c b/test/CFrontend/2004-03-07-ComplexDivEquals.c
index f482692897..b1da580541 100644
--- a/test/CFrontend/2004-03-07-ComplexDivEquals.c
+++ b/test/CFrontend/2004-03-07-ComplexDivEquals.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
void test(__complex__ double D, double X) {
D /= X;
diff --git a/test/CFrontend/2004-03-09-LargeArrayInitializers.c b/test/CFrontend/2004-03-09-LargeArrayInitializers.c
index 89dc72e9f7..335c568487 100644
--- a/test/CFrontend/2004-03-09-LargeArrayInitializers.c
+++ b/test/CFrontend/2004-03-09-LargeArrayInitializers.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
// Test that these initializers are handled efficiently
int test(int x) {
diff --git a/test/CFrontend/2004-03-15-SimpleIndirectGoto.c b/test/CFrontend/2004-03-15-SimpleIndirectGoto.c
index 38ce086f2e..ad7221e96a 100644
--- a/test/CFrontend/2004-03-15-SimpleIndirectGoto.c
+++ b/test/CFrontend/2004-03-15-SimpleIndirectGoto.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
int code[]={0,0,0,0,1};
void foo(int x) {
volatile int b;
diff --git a/test/CFrontend/2004-03-16-AsmRegisterCrash.c b/test/CFrontend/2004-03-16-AsmRegisterCrash.c
index 864d6ebad2..6ad1cd48f3 100644
--- a/test/CFrontend/2004-03-16-AsmRegisterCrash.c
+++ b/test/CFrontend/2004-03-16-AsmRegisterCrash.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
int foo() {
register int X __asm__("ebx");
return X;
diff --git a/test/CFrontend/2004-05-07-VarArrays.c b/test/CFrontend/2004-05-07-VarArrays.c
index f56427b9ec..20412983e9 100644
--- a/test/CFrontend/2004-05-07-VarArrays.c
+++ b/test/CFrontend/2004-05-07-VarArrays.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
int foo(int len, char arr[][len], int X) {
return arr[X][0];
}
diff --git a/test/CFrontend/2004-05-21-IncompleteEnum.c b/test/CFrontend/2004-05-21-IncompleteEnum.c
index 1e57a976c5..3636ca7429 100644
--- a/test/CFrontend/2004-05-21-IncompleteEnum.c
+++ b/test/CFrontend/2004-05-21-IncompleteEnum.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
void test(enum foo *X) {
}
diff --git a/test/CFrontend/2004-06-08-OpaqueStructArg.c b/test/CFrontend/2004-06-08-OpaqueStructArg.c
index c73bc86126..ede811c389 100644
--- a/test/CFrontend/2004-06-08-OpaqueStructArg.c
+++ b/test/CFrontend/2004-06-08-OpaqueStructArg.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
struct fu;
void foo(struct fu);
void bar() {
diff --git a/test/CFrontend/2004-06-17-UnorderedBuiltins.c b/test/CFrontend/2004-06-17-UnorderedBuiltins.c
index 2ace907a48..5e02e7f325 100644
--- a/test/CFrontend/2004-06-17-UnorderedBuiltins.c
+++ b/test/CFrontend/2004-06-17-UnorderedBuiltins.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
_Bool A, B, C, D, E, F, G, H;
void TestF(float X, float Y) {
diff --git a/test/CFrontend/2004-06-18-VariableLengthArrayOfStructures.c b/test/CFrontend/2004-06-18-VariableLengthArrayOfStructures.c
index da52cbcd75..e474a13b37 100644
--- a/test/CFrontend/2004-06-18-VariableLengthArrayOfStructures.c
+++ b/test/CFrontend/2004-06-18-VariableLengthArrayOfStructures.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
struct S { };
diff --git a/test/CFrontend/2004-07-06-FunctionCast.c b/test/CFrontend/2004-07-06-FunctionCast.c
index 1d4a261683..169f740364 100644
--- a/test/CFrontend/2004-07-06-FunctionCast.c
+++ b/test/CFrontend/2004-07-06-FunctionCast.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
static int unused_func(void) {
return 1;
}
diff --git a/test/CFrontend/2004-08-06-LargeStructTest.c b/test/CFrontend/2004-08-06-LargeStructTest.c
index a0b1b09ccf..b0413b4b0c 100644
--- a/test/CFrontend/2004-08-06-LargeStructTest.c
+++ b/test/CFrontend/2004-08-06-LargeStructTest.c
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
#define A(X) int X;
#define B(X) A(X##0) A(X##1) A(X##2) A(X##3) A(X##4) A(X##5) A(X##6) A(X##7) \