1; RUN: opt -thinlto-bc -o %t %s
2; RUN: llvm-modextract -n 1 -o - %t | llvm-dis | FileCheck %s
3
4; The target assembly parser is required to parse the symver directives
5; REQUIRES: x86-registered-target
6
7target triple = "x86_64-unknown-linux-gnu"
8
9module asm ".symver used, used@VER"
10module asm ".symver unused, unused@VER"
11module asm ".symver variable, variable@VER"
12
13declare !type !0 void @used()
14declare !type !0 void @unused()
15@variable = global i32 0
16
17define i32* @use() {
18  call void @used()
19  ret i32* @variable
20}
21
22; CHECK: !symvers = !{![[SYMVER:[0-9]+]]}
23; CHECK: ![[SYMVER]] = !{!"used", !"used@VER"}
24
25!0 = !{i64 0, !"_ZTSFvvE"}
26