Reid Spencer | 69ccadd | 2006-12-02 04:23:10 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | opt -constmerge > /dev/null |
Chris Lattner | 10b37b6 | 2002-09-23 22:31:04 +0000 | [diff] [blame] | 2 | |
| 3 | %foo = internal constant {int} {int 7} |
| 4 | %bar = internal constant {int} {int 7} |
| 5 | |
| 6 | implementation |
| 7 | |
| 8 | declare int %test(int*) |
| 9 | |
| 10 | void %foo() { |
Reid Spencer | e5d4efa | 2006-11-23 15:14:52 +0000 | [diff] [blame] | 11 | call int %test(int* getelementptr ( {int} * %foo, long 0, uint 0)) |
| 12 | call int %test(int* getelementptr ( {int} * %bar, long 0, uint 0)) |
Chris Lattner | 10b37b6 | 2002-09-23 22:31:04 +0000 | [diff] [blame] | 13 | ret void |
| 14 | } |