blob: 70c9617ef1c0cbe38b4b15697b07f99be413c802 [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
Duncan P. N. Exon Smith13f5c582014-08-19 21:08:27 +00004; RUN: verify-uselistorder %s
Chris Lattner3e2c5262003-05-15 19:38:39 +00005
Tanya Lattner6e9bcee2008-02-14 07:57:12 +00006define void @test() {
David Blaikie32b845d2015-04-16 23:24:18 +00007 call void (...) bitcast (void (i16*, i32)* @AddString to void (...)*)( i16* null, i32 0 )
Chris Lattnera60f855d2003-05-15 18:52:08 +00008 ret void
9}
10
Tanya Lattner6e9bcee2008-02-14 07:57:12 +000011define void @AddString(i16* %tmp.124, i32 %tmp.127) {
David Blaikie32b845d2015-04-16 23:24:18 +000012 call void (...) bitcast (void (i16*, i32)* @AddString to void (...)*)( i16* %tmp.124, i32 %tmp.127 )
Tanya Lattner6e9bcee2008-02-14 07:57:12 +000013 ret void
Chris Lattnera60f855d2003-05-15 18:52:08 +000014}
15