comparison test/LTO/X86/symver-asm.ll @ 83:60c9769439b8 LLVM3.7

LLVM 3.7
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Wed, 18 Feb 2015 14:55:36 +0900
parents
children 803732b1fca8
comparison
equal deleted inserted replaced
78:af83660cff7b 83:60c9769439b8
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 }