blob: fb83b359485b5eabb9e0a7c1e58b904cd0588e69 [file] [log] [blame]
Rui Ueyama44da9de2016-12-05 18:40:14 +00001// 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
11foo@V2:
12 ret