1 ; RUN: opt < %s -aa-pipeline=basic-aa -passes=aa-eval -print-all-alias-modref-info 2>&1 | FileCheck %s
3 declare ptr @captures(ptr %cap) nounwind readonly
6 ; CHECK: NoAlias: i32* %a, i32* %b
7 define void @no(ptr noalias %a, ptr %b) nounwind {
10 %cap = call ptr @captures(ptr %a) nounwind readonly
16 ; CHECK: MayAlias: i32* %c, i32* %d
17 define void @yes(ptr %c, ptr %d) nounwind {
20 %cap = call ptr @captures(ptr %c) nounwind readonly
25 ; Result should be the same for byval instead of noalias.
27 ; CHECK: NoAlias: i32* %a, i32* %b
28 define void @byval(ptr byval(i32) %a, ptr %b) nounwind {
31 %cap = call ptr @captures(ptr %a) nounwind readonly