Joel Jones | a5752e1 | 2018-06-06 13:56:51 | [diff] [blame] | 1 | # REQUIRES: x86 |
Rafael Espindola | 3c35446 | 2018-01-16 18:21:23 | [diff] [blame] | 2 | # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o |
3 | # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/undef-shared2.s -o %t2.o | ||||
4 | # RUN: not ld.lld %t.o %t2.o -o %t.so -shared 2>&1 | FileCheck %s | ||||
5 | # RUN: not ld.lld %t2.o %t.o -o %t.so -shared 2>&1 | FileCheck %s | ||||
6 | |||||
7 | # CHECK: error: undefined symbol: foo | ||||
8 | |||||
9 | .data | ||||
10 | .quad foo | ||||
11 | .protected foo |