2012-07-03 02:37:59 +08:00
|
|
|
; RUN: opt < %s -basicaa -aa-eval -disable-output 2>&1 | FileCheck %s
|
2008-11-24 11:41:24 +08:00
|
|
|
|
|
|
|
declare noalias i32* @_Znwj(i32 %x) nounwind
|
|
|
|
|
2012-04-24 17:15:38 +08:00
|
|
|
; CHECK: 1 no alias response
|
|
|
|
|
2008-11-24 11:41:24 +08:00
|
|
|
define i32 @foo() {
|
|
|
|
%A = call i32* @_Znwj(i32 4)
|
|
|
|
%B = call i32* @_Znwj(i32 4)
|
|
|
|
store i32 1, i32* %A
|
|
|
|
store i32 2, i32* %B
|
2015-02-28 05:17:42 +08:00
|
|
|
%C = load i32, i32* %A
|
2008-11-24 11:41:24 +08:00
|
|
|
ret i32 %C
|
|
|
|
}
|