Introduce llvm/test/LTO/X86. LTO tests may be assumed as target-specific.
[oota-llvm.git] / test / LTO / X86 / symver-asm.ll
1 ; RUN: llvm-as < %s >%t1
2 ; RUN: llvm-lto -o %t2 %t1
3 ; RUN: llvm-nm %t2 | FileCheck %s
4
5 target triple = "x86_64-unknown-linux-gnu"
6
7 module asm ".symver io_cancel_0_4,io_cancel@@LIBAIO_0.4"
8
9 ; Even without -exported-symbol, io_cancel_0_4 should be noticed by LTOModule's
10 ; RecordStreamer, so it shouldn't get eliminated. However, the object file will
11 ; contain the aliased symver as well as the original.
12 define i32 @io_cancel_0_4() {
13 ; CHECK: io_cancel@@LIBAIO_0.4
14 ; CHECK: io_cancel_0_4
15   ret i32 0
16 }