Chris Lattner | 233bfb2 | 2003-01-30 20:03:15 +0000 | [diff] [blame] | 1 | ; This fails because the linker renames the non-opaque type not the opaque |
| 2 | ; one... |
| 3 | |
Reid Spencer | edca80b | 2007-04-15 18:11:57 +0000 | [diff] [blame] | 4 | ; RUN: echo {%Ty = type opaque @GV = external global %Ty*} | llvm-as > %t.1.bc |
Misha Brukman | b6cb66f | 2003-09-15 20:04:28 +0000 | [diff] [blame] | 5 | ; RUN: llvm-as < %s > %t.2.bc |
Reid Spencer | edca80b | 2007-04-15 18:11:57 +0000 | [diff] [blame] | 6 | ; RUN: llvm-link %t.1.bc %t.2.bc | llvm-dis | grep {%Ty } | not grep opaque |
Chris Lattner | 233bfb2 | 2003-01-30 20:03:15 +0000 | [diff] [blame] | 7 | |
Reid Spencer | edca80b | 2007-04-15 18:11:57 +0000 | [diff] [blame] | 8 | %Ty = type i32 |
Chris Lattner | 233bfb2 | 2003-01-30 20:03:15 +0000 | [diff] [blame] | 9 | |