mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
New basic testcase for the constifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15733 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
68fb37ad67
commit
0c3bba3d9c
9
test/Transforms/GlobalConstifier/basictest.llx
Normal file
9
test/Transforms/GlobalConstifier/basictest.llx
Normal file
@ -0,0 +1,9 @@
|
||||
; RUN: llvm-as < %s | opt -constify | llvm-dis | not grep global
|
||||
|
||||
%X = internal global int 4
|
||||
|
||||
|
||||
int %foo() {
|
||||
%V = load int* %X
|
||||
ret int %V
|
||||
}
|
Loading…
Reference in New Issue
Block a user