llvm.org GIT mirror llvm / 6ca06cd
Use %% for literals in RUN lines. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138647 91177308-0d34-0410-b5e6-96231b3b80d8 Andrew Trick 8 years ago
7 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
None ; This fails because the linker renames the non-opaque type not the opaque
0 ; This fails because the linker renames the non-opaque type not the opaque
11 ; one...
22
3 ; RUN: echo {%Ty = type opaque @GV = external global %Ty*} | llvm-as > %t.1.bc
3 ; RUN: echo {%%Ty = type opaque @GV = external global %%Ty*} | llvm-as > %t.1.bc
44 ; RUN: llvm-as < %s > %t.2.bc
5 ; RUN: llvm-link %t.1.bc %t.2.bc -S | grep {%Ty } | not grep opaque
5 ; RUN: llvm-link %t.1.bc %t.2.bc -S | grep {%%Ty } | not grep opaque
66
77 %Ty = type {i32}
88
0 ; This one fails because the LLVM runtime is allowing two null pointers of
11 ; the same type to be created!
22
3 ; RUN: echo {%T = type i32} | llvm-as > %t.2.bc
3 ; RUN: echo {%%T = type i32} | llvm-as > %t.2.bc
44 ; RUN: llvm-as %s -o %t.1.bc
55 ; RUN: llvm-link %t.1.bc %t.2.bc
66
None ; RUN: echo {%T = type opaque} | llvm-as > %t.2.bc
0 ; RUN: echo {%%T = type opaque} | llvm-as > %t.2.bc
11 ; RUN: llvm-as < %s > %t.1.bc
22 ; RUN: llvm-link %t.1.bc %t.2.bc
33
None ; RUN: echo {%T = type i32} | llvm-as > %t.1.bc
0 ; RUN: echo {%%T = type i32} | llvm-as > %t.1.bc
11 ; RUN: llvm-as < %s > %t.2.bc
22 ; RUN: llvm-link %t.1.bc %t.2.bc
33
0 ; RUN: llvm-as < %s > %t.out1.bc
1 ; RUN: echo {%T1 = type opaque %T2 = type opaque @S = external global \{ i32, %T1* \} declare void @F(%T2*)}\
1 ; RUN: echo {%%T1 = type opaque %%T2 = type opaque @S = external global \{ i32, %%T1* \} declare void @F(%%T2*)}\
22 ; RUN: | llvm-as > %t.out2.bc
33 ; RUN: llvm-link %t.out1.bc %t.out2.bc -S | not grep opaque
44
44 ; own.
55
66 ; RUN: llvm-as < %s > %t.out2.bc
7 ; RUN: echo "%T1 = type opaque @GVar = external global %T1*" | llvm-as > %t.out1.bc
7 ; RUN: echo "%%T1 = type opaque @GVar = external global %%T1*" | llvm-as > %t.out1.bc
88 ; RUN: llvm-link %t.out1.bc %t.out2.bc
99
1010 %T1 = type opaque
None ; RUN: opt < %s -scalarrepl -S | grep {alloca %T}
0 ; RUN: opt < %s -scalarrepl -S | grep {alloca %%T}
11
22 %T = type { [80 x i8], i32, i32 }
33 declare i32 @.callback_1(i8*)