Sign in
llvm
/
llvm-project
/
llvm
/
refs/heads/master
/
.
/
test
/
Assembler
/
implicit-intrinsic-declaration-invalid2.ll
blob: 99a3b07fb256448d2a5b8e0786128f67e3e8521c [
file
] [
log
] [
blame
]
; 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
)