1; RUN: opt < %s -internalize -S | FileCheck %s
2; RUN: opt < %s -passes=internalize -S | FileCheck %s
3
4@llvm.used = appending global [1 x void ()*] [void ()* @f], section "llvm.metadata"
5
6@llvm.compiler.used = appending global [1 x void ()*] [void ()* @g], section "llvm.metadata"
7
8; CHECK: define void @f()
9define void @f() {
10  ret void
11}
12
13; CHECK: define internal void @g()
14define void @g() {
15  ret void
16}
17
18; CHECK: define internal void @h()
19define void @h() {
20  ret void
21}
22