blob: 146ce6534d709a110dcafc6977a91eb632a7abb1 [file] [log] [blame]
Chris Lattner3e2c5262003-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 Gohmanfea1dd02009-08-25 15:38:29 +00003; RUN: llvm-as %s -o /dev/null
Chris Lattner3e2c5262003-05-15 19:38:39 +00004
Tanya Lattner6e9bcee2008-02-14 07:57:12 +00005define void @test() {
6 call void (...)* bitcast (void (i16*, i32)* @AddString to void (...)*)( i16* null, i32 0 )
Chris Lattnera60f8552003-05-15 18:52:08 +00007 ret void
8}
9
Tanya Lattner6e9bcee2008-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 Lattnera60f8552003-05-15 18:52:08 +000013}
14