1 ; RUN: opt < %s -basicaa -globals-aa -gvn -S | FileCheck %s
5 @X = internal global i32 4
7 define i32 @test(i32* %P) {
9 ; CHECK-NEXT: store i32 12, i32* @X
10 ; CHECK-NEXT: call void @doesnotmodX()
11 ; CHECK-NEXT: %V = load i32, i32* @X
12 ; CHECK-NEXT: ret i32 %V
14 call void @doesnotmodX( )
15 %V = load i32, i32* @X
19 define linkonce_odr void @doesnotmodX() {