blob: 0cb35b390337a00bb6b76a336635a1aa92bb2132 [file] [log] [blame]
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; Check that intrinsics do not get automatically declared if they are used
; with different function types.
; CHECK: error: use of undefined value '@llvm.umax'
define void @test() {
call i8 @llvm.umax(i8 0, i8 1)
call i16 @llvm.umax(i16 0, i16 1)
ret void
}