xref: /llvm-project/llvm/test/Analysis/BasicAA/2008-11-23-NoaliasRet.ll (revision 05ff7606c9d47135ecf5b69e25b1327634f6fa27)
1; RUN: opt < %s -aa-pipeline=basic-aa -passes=aa-eval -disable-output 2>&1 | FileCheck %s
2
3declare noalias ptr @_Znwj(i32 %x) nounwind
4
5; CHECK: 1 no alias response
6
7define i32 @foo() {
8  %A = call ptr @_Znwj(i32 4)
9  %B = call ptr @_Znwj(i32 4)
10  store i32 1, ptr %A
11  store i32 2, ptr %B
12  %C = load i32, ptr %A
13  ret i32 %C
14}
15