blob: 17967a936506b4fd6a3c6d5b383eaac7c12f6b93 [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.
Gabor Greif5edf2102008-05-20 22:07:21 +00003; RUN: llvm-as %s -o /dev/null -f
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