1 ; RUN: opt < %s -basicaa -globals-aa -gvn -S | FileCheck %s
3 @X = internal global i32 4 ; <i32*> [#uses=2]
5 define i32 @test(i32* %P) {
7 ; CHECK-NEXT: store i32 12, i32* @X
8 ; CHECK-NEXT: call void @doesnotmodX()
9 ; CHECK-NEXT: ret i32 12
11 call void @doesnotmodX( )
12 %V = load i32, i32* @X ; <i32> [#uses=1]
16 define void @doesnotmodX() {