repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[rtsan] Add fork/execve interceptors (#117198)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
GlobalOpt
/
2009-03-06-Anonymous.ll
blob
b54815b8af8cbb3c132b53bb344f87cc7332bf87
1
; RUN: opt < %s -passes=globalopt -S | FileCheck %s
2
3
@0 = global i32 0
4
; CHECK-DAG: @0 = internal global i32 0
5
6
@1 = private global i32 0
7
; CHECK-DAG: @1 = private global i32 0
8
9
define ptr @2() {
10
ret ptr @0
11
}
12
; CHECK-DAG: define internal fastcc ptr @2()
13
14
define ptr @f() {
15
entry:
16
call ptr @2()
17
ret ptr %0
18
}
19
20
define ptr @g() {
21
entry:
22
ret ptr @1
23
}