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