26 lines · plain
1; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s2; RUN: llvm-modextract -n 1 -o - %t | llvm-dis | FileCheck %s3 4; The target assembly parser is required to parse the symver directives5; REQUIRES: x86-registered-target6 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 016 17define ptr @use() {18 call void @used()19 ret ptr @variable20}21 22; CHECK: !symvers = !{![[SYMVER:[0-9]+]]}23; CHECK: ![[SYMVER]] = !{!"used", !"used@VER"}24 25!0 = !{i64 0, !"_ZTSFvvE"}26