aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/BasicAA/2007-08-01-NoAliasAndCalls.ll
blob: 2a6f5b9955d7aba88b4207188bcbf59248741fe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s

; CHECK: Function: foo
; CHECK:   MayAlias: i32* %x, i32* %y

define void @foo(i32* noalias %x) {
  %y = call i32* @unclear(i32* %x)
  store i32 0, i32* %x
  store i32 0, i32* %y
  ret void
}

declare i32* @unclear(i32* %a)