Rui Ueyama | 44da9de | 2016-12-05 18:40:14 +0000 | [diff] [blame] | 1 | // REQUIRES: x86 |
2 | // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux | ||||
3 | // RUN: echo "V1 {};" > %t.script | ||||
4 | // RUN: not ld.lld -shared -version-script=%t.script %t.o -o %t.so 2>&1 \ | ||||
5 | // RUN: | FileCheck %s | ||||
6 | |||||
7 | // CHECK: .o: symbol foo@V2 has undefined version V2 | ||||
8 | |||||
9 | .globl foo@V2 | ||||
10 | .text | ||||
11 | foo@V2: | ||||
12 | ret |