]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/lto/unnamed-addr-comdat.ll
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / lto / unnamed-addr-comdat.ll
1 ; REQUIRES: x86
2 ; RUN: llvm-as %s -o %t.o
3 ; RUN: ld.lld %t.o %t.o -o %t.so -save-temps -shared
4 ; RUN: llvm-dis %t.so.0.2.internalize.bc -o - | FileCheck %s
5
6 target triple = "x86_64-unknown-linux-gnu"
7 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
8
9 $foo = comdat any
10 @foo = linkonce_odr unnamed_addr constant i32 42, comdat
11
12 ; CHECK: @foo = internal unnamed_addr constant i32 42, comdat