llvm-for-llvmta/test/Verifier/token2.ll

12 lines
228 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
define void @f(token %A, token %B) {
entry:
br label %bb
bb:
%sel = select i1 undef, token %A, token %B
; CHECK: select values cannot have token type
br label %bb
}