blob: fadc7471f8d476bcccbb7b5b249e8bba797dfc58 [file] [log] [blame]
Reid Spencer69ccadd2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -globalsmodref-aa -load-vn -gcse | llvm-dis | not grep load
Chris Lattner059f5a52004-07-27 06:26:08 +00002%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}