1 ; RUN: llvm-as < %s | opt -globalsmodref-aa -load-vn -gcse | llvm-dis | not grep load
3 ; This test requires the use of previous analyses to determine that
4 ; doesnotmodX does not modify X (because 'sin' doesn't).
6 %X = internal global int 4
8 declare double %sin(double)
12 call double %doesnotmodX(double 1.0)
17 double %doesnotmodX(double %V) {
18 %V2 = call double %sin(double %V)