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
[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git]
/
llvm
/
test
/
tools
/
llvm-extract
/
keep-constinit.ll
blob
3847b0b219dfd458a5db7de92f7b3bdce9cd5c0a
1
; RUN: llvm-extract -func foo -keep-const-init -S < %s | FileCheck %s
2
; RUN: llvm-extract -func foo -S < %s | FileCheck %s --check-prefix=CHECK2
3
4
; CHECK: @cv = constant i32 0
5
; CHECK2: @cv = external constant i32
6
7
@cv = constant i32 0
8
9
define i32 @foo() {
10
%v = load i32, ptr @cv
11
ret i32 %v
12
}