blob: 955aed64bc7de3ab3e4a269055a0dfb31793631b [file] [log] [blame]
; RUN: split-file %s %t
; RUN: not llvm-as < %t/extractvalue.ll 2>&1 | FileCheck %s --check-prefix=EXTRACTVALUE
; RUN: not llvm-as < %t/insertvalue.ll 2>&1 | FileCheck %s --check-prefix=INSERTVALUE
;--- extractvalue.ll
define i32 @extractvalue() {
; EXTRACTVALUE: error: extractvalue constexprs are no longer supported
ret i32 extractvalue ({i32} {i32 3}, 0)
}
;--- insertvalue.ll
define {i32} @insertvalue() {
; INSERTVALUE: error: insertvalue constexprs are no longer supported
ret {i32} insertvalue ({i32} poison, i32 3, 0)
}