mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-18 10:31:57 +00:00
14 lines
249 B
LLVM
14 lines
249 B
LLVM
|
; Make sure that the ds-opt pass is constantizing globals
|
||
|
;
|
||
|
; RUN: as < %s | opt -ds-opt | dis | grep %G | grep constant
|
||
|
|
||
|
|
||
|
%G = internal global int 0 ; <int*> [#uses=2]
|
||
|
|
||
|
implementation ; Functions:
|
||
|
|
||
|
int %main() {
|
||
|
%A = load int* %G
|
||
|
ret int %A
|
||
|
}
|