2016-04-23 04:21:26 +08:00
|
|
|
; REQUIRES: x86
|
|
|
|
; RUN: llvm-as %s -o %t.o
|
|
|
|
; RUN: echo "{ global: foo; local: *; };" > %t.script
|
2018-05-31 01:57:08 +08:00
|
|
|
; RUN: ld.lld %t.o -o %t2 -shared --version-script %t.script -save-temps
|
2016-09-29 08:40:08 +08:00
|
|
|
; RUN: llvm-dis < %t2.0.2.internalize.bc | FileCheck %s
|
2016-04-23 04:21:26 +08:00
|
|
|
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
2019-08-28 09:08:54 +08:00
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
2016-04-23 04:21:26 +08:00
|
|
|
|
|
|
|
define void @foo() {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @bar() {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; Check that foo is not internalized.
|
|
|
|
; CHECK: define void @foo()
|
|
|
|
|
|
|
|
; Check that bar is correctly internalized.
|
|
|
|
; CHECK: define internal void @bar()
|