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 /dev/null 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
13