blob: 3db9a3fbcdc95d3419e2b17ad73d6cb99fe20525 [file] [log] [blame]
Chandler Carruth49589f02012-07-02 18:37:59 +00001; RUN: opt < %s -basicaa -aa-eval -disable-output 2>&1 | FileCheck %s
Nick Lewycky02ff3082008-11-24 03:41:24 +00002
3declare noalias i32* @_Znwj(i32 %x) nounwind
4
Bill Wendlingd5cc8b82012-04-24 09:15:38 +00005; CHECK: 1 no alias response
6
Nick Lewycky02ff3082008-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
12 %C = load i32* %A
13 ret i32 %C
14}