blob: fadc7471f8d476bcccbb7b5b249e8bba797dfc58 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -globalsmodref-aa -load-vn -gcse | llvm-dis | not grep load
2%X = internal global int 4
3
4int %test(int *%P) {
5 store int 12, int* %X
6 call void %doesnotmodX()
7 %V = load int* %X
8 ret int %V
9}
10
11void %doesnotmodX() {
12 ret void
13}