blob: 49a742c31f588e9e6bccc8a70e1be1f4f2407e77 [file] [log] [blame]
Chandler Carruth5da53432012-07-02 18:37:59 +00001; RUN: opt < %s -basicaa -aa-eval -disable-output 2>&1 | FileCheck %s
Nick Lewyckyf5ffcbc2008-11-24 03:41:24 +00002
3declare noalias i32* @_Znwj(i32 %x) nounwind
4
Bill Wendlingcd6df162012-04-24 09:15:38 +00005; CHECK: 1 no alias response
6
Nick Lewyckyf5ffcbc2008-11-24 03:41:24 +00007define i32 @foo() {
8 %A = call i32* @_Znwj(i32 4)
9 %B = call i32* @_Znwj(i32 4)
10 store i32 1, i32* %A
11 store i32 2, i32* %B
David Blaikiea79ac142015-02-27 21:17:42 +000012 %C = load i32, i32* %A
Nick Lewyckyf5ffcbc2008-11-24 03:41:24 +000013 ret i32 %C
14}