Reid Spencer | 69ccadd | 2006-12-02 04:23:10 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | not grep %G |
Chris Lattner | 5085403 | 2004-10-08 20:57:46 +0000 | [diff] [blame] | 2 | |
3 | %G = internal global int 0 | ||||
4 | %H = internal global { int* } { int* %G } | ||||
5 | |||||
6 | int %loadg() { | ||||
7 | %G = load int** getelementptr ({int*}* %H, int 0, uint 0) | ||||
8 | %GV = load int* %G | ||||
9 | ret int %GV | ||||
10 | } |