blob: a08eef1b6661c5cb231120bb6e93461b9d5653e1 [file] [log] [blame]
Chris Lattner059f5a52004-07-27 06:26:08 +00001; RUN: llvm-as < %s | 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}