llvm.org GIT mirror llvm / 83935ac
Use not instead of ignore when an exit status is expected to always be non-zero. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44866 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 12 years ago
7 changed file(s) with 8 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
0 ; Test for PR463. This program is erroneous, but should not crash llvm-as.
1 ; RUN: ignore llvm-as < %s -o /dev/null -f |& \
1 ; RUN: not llvm-as < %s -o /dev/null -f |& \
22 ; RUN: grep {Cannot create a null initialized value of this type}
33
44 @.FOO = internal global %struct.none zeroinitializer
None ; RUN: ignore llvm-as < %s -o /dev/null -f |& \
0 ; RUN: not llvm-as < %s -o /dev/null -f |& \
11 ; RUN: grep {LLVM functions cannot return aggregate types}
22
33 define void @test() {
None // RUN: ignore %llvmgcc -xc %s -S -o /dev/null |& \
0 // RUN: not %llvmgcc -xc %s -S -o /dev/null |& \
11 // RUN: grep fluffy | grep 2006-09-25-DebugFilename.c
22 #include "2006-09-25-DebugFilename.h"
33 int func1() { return hfunc1(); }
None ; RUN: ignore llvm-as < %s -o /dev/null -f |& grep \
0 ; RUN: not llvm-as < %s -o /dev/null -f |& grep \
11 ; RUN: "Redefinition of global variable named 'B'"
22 ; END.
33
11 ; that error is printed out.
22 ; RUN: llvm-as %s -o %t.one.bc -f
33 ; RUN: llvm-as %s -o %t.two.bc -f
4 ; RUN: ignore llvm-ld -disable-opt -link-as-library %t.one.bc %t.two.bc \
4 ; RUN: not llvm-ld -disable-opt -link-as-library %t.one.bc %t.two.bc \
55 ; RUN: -o %t.bc 2>%t.err
66 ; RUN: grep "Function is already defined" %t.err
77
22 ; RUN: llvm-as %s -o %t.foo1.bc -f
33 ; RUN: llvm-as %s -o %t.foo2.bc -f
44 ; RUN: echo {define void @foo(i32 %x) { ret void }} | llvm-as -o %t.foo3.bc -f
5 ; RUN: ignore llvm-link %t.foo1.bc %t.foo2.bc -o %t.bc |& \
5 ; RUN: not llvm-link %t.foo1.bc %t.foo2.bc -o %t.bc |& \
66 ; RUN: grep {Function is already defined}
7 ; RUN: ignore llvm-link %t.foo1.bc %t.foo3.bc -o %t.bc |& \
7 ; RUN: not llvm-link %t.foo1.bc %t.foo3.bc -o %t.bc |& \
88 ; RUN: grep {Function 'foo' defined as both}
99 define void @foo() { ret void }
None ; RUN: ignore llvm-as < %s > /dev/null |& \
0 ; RUN: not llvm-as < %s > /dev/null |& \
11 ; RUN: grep {Cannot form a pointer to a basic block}
22
33 define i32 @main() {