2012-07-03 02:37:59 +08:00
|
|
|
; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
|
2007-08-02 09:18:14 +08:00
|
|
|
|
2012-04-24 17:15:38 +08:00
|
|
|
; CHECK: Function: foo
|
|
|
|
; CHECK: MayAlias: i32* %x, i32* %y
|
2007-08-02 09:18:14 +08:00
|
|
|
|
|
|
|
define void @foo(i32* noalias %x) {
|
|
|
|
%y = call i32* @unclear(i32* %x)
|
|
|
|
store i32 0, i32* %x
|
|
|
|
store i32 0, i32* %y
|
|
|
|
ret void
|
|
|
|
}
|
2012-04-24 17:15:38 +08:00
|
|
|
|
|
|
|
declare i32* @unclear(i32* %a)
|