Chris Lattner | 607411b | 2003-06-28 21:56:22 +0000 | [diff] [blame] | 1 | ; Make sure that the ds-opt pass is constantizing globals |
2 | ; | ||||
Misha Brukman | 14285c8 | 2003-09-15 20:02:53 +0000 | [diff] [blame^] | 3 | ; RUN: llvm-as < %s | opt -ds-opt | llvm-dis | grep %G | grep constant |
Chris Lattner | 607411b | 2003-06-28 21:56:22 +0000 | [diff] [blame] | 4 | |
5 | |||||
6 | %G = internal global int 0 ; <int*> [#uses=2] | ||||
7 | |||||
8 | implementation ; Functions: | ||||
9 | |||||
10 | int %main() { | ||||
11 | %A = load int* %G | ||||
12 | ret int %A | ||||
13 | } |