2 ; RUN: llvm-as %s -o %t.o
3 ; RUN: echo "{ global: foo; local: *; };" > %t.script
4 ; RUN: ld.lld %t.o -o %t2 -shared --version-script %t.script -save-temps
5 ; RUN: llvm-dis < %t2.0.2.internalize.bc | FileCheck %s
7 target triple = "x86_64-unknown-linux-gnu"
8 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
18 ; Check that foo is not internalized.
19 ; CHECK: define void @foo()
21 ; Check that bar is correctly internalized.
22 ; CHECK: define internal void @bar()