blob: 804329a49c9e63655d6ae90fd081d32abaa114df [file] [log] [blame]
Reid Spencereb2073b2007-01-27 21:09:03 +00001; Test linking two functions with different prototypes and two globals
Reid Spencer90850432007-01-30 16:16:01 +00002; in different modules. This is for PR411
Chandler Carruth7e621f32012-07-02 10:18:06 +00003; RUN: llvm-as %S/Inputs/basiclink.a.ll -o %t.foo.bc
4; RUN: llvm-as %S/Inputs/basiclink.b.ll -o %t.bar.bc
Dan Gohmanfea1dd02009-08-25 15:38:29 +00005; RUN: llvm-link %t.foo.bc %t.bar.bc -o %t.bc
Chandler Carruth7e621f32012-07-02 10:18:06 +00006; RUN: llvm-link %t.bar.bc %t.foo.bc -o %t.bc