1; RUN: not llvm-as < %s 2>&1 | FileCheck %s
2
3; Use of intrinsic as non-callee should be rejected.
4
5; CHECK: error: intrinsic can only be used as callee
6define void @test() {
7 call void @foo(ptr @llvm.umax)
8 ret void
9}
10
11declare void @foo(ptr)
12