Lang Hames | 6cadc7c | 2018-08-28 21:18:05 +0000 | [diff] [blame] | 1 | ; RUN: llc -filetype=obj -o %t1.o %p/Inputs/obj-weak-non-materialization-1.ll |
| 2 | ; RUN: llc -filetype=obj -o %t2.o %p/Inputs/obj-weak-non-materialization-2.ll |
| 3 | ; RUN: lli -jit-kind=orc-lazy -extra-object %t1.o -extra-object %t2.o %s |
| 4 | ; |
| 5 | ; Check that %t1.o's version of the weak symbol X is used, even though %t2.o is |
| 6 | ; materialized first. |
| 7 | |
| 8 | @X = external global i32 |
| 9 | |
| 10 | declare void @foo() |
| 11 | |
| 12 | define i32 @main(i32 %argc, i8** %argv) { |
| 13 | entry: |
| 14 | call void @foo() |
| 15 | %0 = load i32, i32* @X |
| 16 | ret i32 %0 |
| 17 | } |