diff options
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 55a17a3..258d3cc 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 41c87d0..9559d5b 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 5ae9d63..010a247 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 24a9f3e..0dad6ff 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 eec7844..ab9b56d 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 ec00527..f4daa21 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 700f564..6fdc7ef 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 8b6f4e0..f1e0151 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 47931b3..952af90 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 78378de..9379295 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 3c3a603..f2ed121 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 78614a7..10439c3 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 4e640d5..8ae8643 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 ebb5aa3..d6cf446 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 38308e3..5174ad4 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 de2d847..cf2ba4e 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 8ab61b8..16d9bc7 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 457d369..01f2597 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 c18157c..2034848 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 178076c..79632c9 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 27a9c73..af6ebd6 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 8ba8bfa..c655e4a 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 f117594..9db6a13 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 821dbbb..79d46ae 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 35508c9..43faf97 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 698452e..0a44db1 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 2f957a2..6547092 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 34edea1..baae585 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 980a8a4..e78dbd7 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 b7b3d5c..ac58926 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 95a0045..a19e2d5 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 81a7bad..d1d0321 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 1c323f1..8a39203 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 3666d0b..6794e80 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 e00a3ce..7eab19b 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 ffb1d5b..634ed3f 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 cdce478..14c879c 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 9c4e5f6..5801d03 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 1ddac3c..15573f9 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 25bf157..b9e2c2e 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 5e89419..e5007af 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 ce2c2ad..e58d858 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 e914e4f..56ec6ce 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 b16a39d..86a2571 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 0a1b157..0c31f2b 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 4ac88b8..2be3c8f 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 5d529dc..6b27391 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 3b17941..a5a679d 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 9899764..39632a1 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 64e5df3..c85dab1 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 a655785..4fc2717 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 16373af..b581330 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 b348746..fa51991 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 e4fb3f0..dab0716 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 3e3c639..ba66276 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 e951f35..bb6977f 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 588da71..b7bc803 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 fb25484..b7f4553 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 fbf6988..649eadc 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 f4458cb..58cf1bc 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 b2535c7..8358a2f 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 ac6db46..575bfd6 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 0e431c7..8829652 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 a5eefe7..878ed47 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 cdbc3a9..0a833dc 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 2558f98..dc27802 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 f2a443f..8c303e8 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 83854d2..a997994 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 7572d27..a5f6fb1 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 c7a0f80..ab2f610 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 fa81802..f67aee4 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 e8435ca..3a7879b 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 2dc8122..3a40166 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 82693c7..732f93a 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 56c5e30..0238603 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 e574a19..90dbd37 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 726d7cf..9911dfd 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 fe96359..5750ced 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 cf53e80..a0aa698 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 d65b328..fb6993b 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 83ee8c0..be7788d 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 f8b8f5f..c7a0164 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 4c2721b..6a42e16 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 041973e..db2e84b 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 399b4e8..2b42e38 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 fbafacb..ec000a4 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 bf37d19..9d54112 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 7fb3df5..c9ea0dc 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 3204271..cd548c0 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 1bbf26f..12e7df5 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 46dc259..079f690 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 33a9426..3780e7a 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 27a1ec7..472b591 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 f9b49cc..863305e 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 27613ca..b3907ee 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 42b3bb3..f94c17e 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 f482692..b1da580 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 89dc72e..335c568 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 38ce086..ad7221e 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 864d6eb..6ad1cd4 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 f56427b..2041298 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 1e57a97..3636ca7 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 c73bc86..ede811c 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 2ace907..5e02e7f 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 da52cbc..e474a13 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 1d4a261..169f740 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 a0b1b09..b0413b4 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) \ |