blob: e4e59c63a4079e7d9806ea58440af901da45c018 [file] [log] [blame]
Reid Spencer69ccadd2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | not grep %G
Chris Lattner50854032004-10-08 20:57:46 +00002
3%G = internal global int 0
4%H = internal global { int* } { int* %G }
5
6int %loadg() {
7 %G = load int** getelementptr ({int*}* %H, int 0, uint 0)
8 %GV = load int* %G
9 ret int %GV
10}