blob: 8d3d434d899cb855c4e246800b89d9fc4d33e877 [file] [log] [blame]
Reid Spencerd0e30dc2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -constmerge > /dev/null
Chris Lattnerbe4521f2002-09-23 22:31:04 +00002
3%foo = internal constant {int} {int 7}
4%bar = internal constant {int} {int 7}
5
6implementation
7
8declare int %test(int*)
9
10void %foo() {
Reid Spencer0e43e152006-11-23 15:14:52 +000011 call int %test(int* getelementptr ( {int} * %foo, long 0, uint 0))
12 call int %test(int* getelementptr ( {int} * %bar, long 0, uint 0))
Chris Lattnerbe4521f2002-09-23 22:31:04 +000013 ret void
14}