blob: 08f033837232ca0b566395050cc8076952391778 [file] [log] [blame]
Chris Lattner607411b2003-06-28 21:56:22 +00001; Make sure that the ds-opt pass is constantizing globals
2;
3; RUN: as < %s | opt -ds-opt | dis | grep %G | grep constant
4
5
6%G = internal global int 0 ; <int*> [#uses=2]
7
8implementation ; Functions:
9
10int %main() {
11 %A = load int* %G
12 ret int %A
13}