llvm/llvm/test/Assembler/implicit-intrinsic-declaration-invalid2.ll

; RUN: not llvm-as < %s 2>&1 | FileCheck %s

; Use of intrinsic as non-callee should be rejected.

; CHECK: error: intrinsic can only be used as callee
define void @test() {
  call void @foo(ptr @llvm.umax)
  ret void
}

declare void @foo(ptr)