15 lines · plain
1; RUN: opt < %s -passes=lint -disable-output 2>&1 | FileCheck --allow-empty %s2 3declare void @foo(ptr noalias, ptr noalias)4 5define void @test() {6entry:7 call void @foo(ptr null, ptr null)8 ret void9}10 11; Lint should not complain about passing null to both arguments if they are12; null, since noalias only applies if the argument is written to, which is not13; possible for a null pointer.14; CHECK-NOT: Unusual: noalias argument aliases another argument15