blob: 146ce6534d709a110dcafc6977a91eb632a7abb1 [file] [log] [blame]
Chris Lattnerf9b586c2003-05-15 19:38:39 +00001; This bug was caused by two CPR's existing for the same global variable,
2; colliding in the Module level CPR map.
Dan Gohman0d4bbf22009-08-25 15:38:29 +00003; RUN: llvm-as %s -o /dev/null
Chris Lattnerf9b586c2003-05-15 19:38:39 +00004
Tanya Lattner5429dbf2008-02-14 07:57:12 +00005define void @test() {
6 call void (...)* bitcast (void (i16*, i32)* @AddString to void (...)*)( i16* null, i32 0 )
Chris Lattner1b173572003-05-15 18:52:08 +00007 ret void
8}
9
Tanya Lattner5429dbf2008-02-14 07:57:12 +000010define void @AddString(i16* %tmp.124, i32 %tmp.127) {
11 call void (...)* bitcast (void (i16*, i32)* @AddString to void (...)*)( i16* %tmp.124, i32 %tmp.127 )
12 ret void
Chris Lattner1b173572003-05-15 18:52:08 +000013}
14