Rafael Espindola | 67926f1 | 2014-10-31 16:52:30 +0000 | [diff] [blame] | 1 | ; Test linking two functions with different prototypes and two globals |
Reid Spencer | 3aaaa0b | 2007-02-05 20:47:22 +0000 | [diff] [blame] | 2 | ; in different modules. |
Rafael Espindola | 67926f1 | 2014-10-31 16:52:30 +0000 | [diff] [blame] | 3 | ; RUN: not llvm-link %s %s -o %t.bc 2>&1 | FileCheck %s |
| 4 | ; RUN: not llvm-link %s %S/Inputs/redefinition.ll -o %t.bc 2>&1 | FileCheck %s |
| 5 | ; CHECK: ERROR: Linking globals named 'foo': symbol multiply defined! |
Reid Spencer | 3aaaa0b | 2007-02-05 20:47:22 +0000 | [diff] [blame] | 6 | define void @foo() { ret void } |