blob: 8150c52bc7bb45770ef53f764437cfa271486361 [file] [log] [blame]
Reid Spencerd0e30dc2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt
Chris Lattner89e0b392004-10-10 17:06:09 +00002
3%V = global float 12.0
4%G = internal global int* null
5
6int %user() {
7 %P = load int** %G
8 %Q = load int* %P
9 ret int %Q
10}
11
12void %setter() {
13 %Vi = cast float* %V to int*
14 store int* %Vi, int** %G
15 ret void
16}
17