blob: 8d3d434d899cb855c4e246800b89d9fc4d33e877 [file] [log] [blame]
Reid Spencer69ccadd2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -constmerge > /dev/null
Chris Lattner10b37b62002-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 Spencere5d4efa2006-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 Lattner10b37b62002-09-23 22:31:04 +000013 ret void
14}