1; REQUIRES: x86
2; RUN: llvm-as %s -o %t.o
3; RUN: ld.lld %t.o -o %t2 -save-temps
4; RUN: llvm-dis < %t2.0.2.internalize.bc | FileCheck %s
5
6target triple = "x86_64-unknown-linux-gnu"
7target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
8
9define void @_start() {
10  ret void
11}
12
13define hidden void @foo() {
14  ret void
15}
16
17; Check that _start is not internalized.
18; CHECK: define dso_local void @_start()
19
20; Check that foo function is correctly internalized.
21; CHECK: define internal void @foo()
22