blob: 10cde2877ce5c8d220f3ab607abc966b283de3ee [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.
Tanya Lattner6e9bcee2008-02-14 07:57:12 +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