[llvm] 9f6c09d - [LLParser] Add test for phi first class type error (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 31 05:24:28 PDT 2022
Author: Nikita Popov
Date: 2022-08-31T14:24:13+02:00
New Revision: 9f6c09de448200de899d02895d339510fcfcd5ea
URL: https://github.com/llvm/llvm-project/commit/9f6c09de448200de899d02895d339510fcfcd5ea
DIFF: https://github.com/llvm/llvm-project/commit/9f6c09de448200de899d02895d339510fcfcd5ea.diff
LOG: [LLParser] Add test for phi first class type error (NFC)
Added:
llvm/test/Assembler/phi-first-class-type.ll
Modified:
Removed:
################################################################################
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
+}
More information about the llvm-commits
mailing list