1 ; RUN: opt < %s -passes=lint -disable-output 2>&1 | FileCheck --allow-empty %s
3 declare void @foo1(ptr noalias, ptr readnone)
5 define void @test1(ptr %a) {
7 call void @foo1(ptr %a, ptr %a)
11 ; Lint should not complain about passing %a to both arguments even if one is
12 ; noalias, since the second argument is readnone.
13 ; CHECK-NOT: Unusual: noalias argument aliases another argument
14 ; CHECK-NOT: call void @foo1(ptr %a, ptr %a)