blob: ce15a43cb8b555c9bce0d0134ae867c2a0a2527a [file] [log] [blame]
Misha Brukmane78760e2003-09-16 15:29:54 +00001; RUN: llvm-as < %s | 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}