xref: /llvm-project/llvm/test/Transforms/Internalize/used.ll (revision 36df3fd67b3a897bc50e36786f9b6cc239fb9f08)
1cee313d2SEric Christopher; RUN: opt < %s -passes=internalize -S | FileCheck %s
2cee313d2SEric Christopher
3*36df3fd6SNikita Popov@llvm.used = appending global [1 x ptr] [ptr @f], section "llvm.metadata"
4cee313d2SEric Christopher
5*36df3fd6SNikita Popov@llvm.compiler.used = appending global [1 x ptr] [ptr @g], section "llvm.metadata"
6cee313d2SEric Christopher
7cee313d2SEric Christopher; CHECK: define void @f()
8cee313d2SEric Christopherdefine void @f() {
9cee313d2SEric Christopher  ret void
10cee313d2SEric Christopher}
11cee313d2SEric Christopher
12cee313d2SEric Christopher; CHECK: define internal void @g()
13cee313d2SEric Christopherdefine void @g() {
14cee313d2SEric Christopher  ret void
15cee313d2SEric Christopher}
16cee313d2SEric Christopher
17cee313d2SEric Christopher; CHECK: define internal void @h()
18cee313d2SEric Christopherdefine void @h() {
19cee313d2SEric Christopher  ret void
20cee313d2SEric Christopher}
21