From 9f6c09de448200de899d02895d339510fcfcd5ea Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 31 Aug 2022 14:23:43 +0200 Subject: [PATCH] [LLParser] Add test for phi first class type error (NFC) --- llvm/test/Assembler/phi-first-class-type.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 llvm/test/Assembler/phi-first-class-type.ll diff --git a/llvm/test/Assembler/phi-first-class-type.ll b/llvm/test/Assembler/phi-first-class-type.ll new file mode 100644 index 000000000000..b14b8c4d3c67 --- /dev/null +++ b/llvm/test/Assembler/phi-first-class-type.ll @@ -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 +}