23 lines · plain
1; REQUIRES: x862; RUN: llvm-as %s -o %t.o3; RUN: echo "{ global: foo; local: *; };" > %t.script4; RUN: ld.lld %t.o -o %t2 -shared --version-script %t.script -save-temps5; RUN: llvm-dis < %t2.0.2.internalize.bc | FileCheck %s6 7target triple = "x86_64-unknown-linux-gnu"8target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"9 10define void @foo() {11 ret void12}13 14define void @bar() {15 ret void16}17 18; Check that foo is not internalized.19; CHECK: define void @foo()20 21; Check that bar is correctly internalized.22; CHECK: define internal void @bar()23