aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Assembler/implicit-intrinsic-declaration-invalid2.ll
blob: 99a3b07fb256448d2a5b8e0786128f67e3e8521c (plain)
1
2
3
4
5
6
7
8
9
10
11
; 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)