1; This testcase ensures that CFL AA gives conservative answers on variables
2; that involve arguments.
3
4; RUN: opt < %s -disable-basicaa -cfl-aa -aa-eval -print-may-aliases -disable-output 2>&1 | FileCheck %s
5
6; CHECK:     Function: test
7; CHECK: 2 Total Alias Queries Performed
8; CHECK: 1 no alias responses
9; ^^ In @test2, %arg1 and %arg2 may alias
10
11define void @test2(i32* %arg1, i32* %arg2) {
12  store i32 0, i32* %arg1
13  store i32 0, i32* %arg2
14
15  ret void
16}
17
18define void @test() {
19  %a = alloca i32, align 4
20  %b = alloca i32, align 4
21  call void @test2(i32* %a, i32* %b)
22
23  ret void
24}
25