[LLParser] Add test for phi first class type error (NFC)

This commit is contained in:
Nikita Popov 2022-08-31 14:23:43 +02:00
parent 5921bc4271
commit 9f6c09de44
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; CHECK: error: phi node must have first class type
define void @test() {
entry:
ret void
bb:
%phi = phi void ()
ret void
}