Some test cases for arg-less enums.

This commit is contained in:
Chris Fallin
2021-09-09 16:32:28 -07:00
parent edc95c51a0
commit 3f96068f94

View File

@@ -19,3 +19,16 @@
(Ext1 x) (Ext1 x)
(Ext2 =x))) (Ext2 =x)))
(C #t)) (C #t))
(type Opcode (enum A B C))
(type MachInst (enum D E F))
(decl Lower2 (Opcode) MachInst)
(rule
(Lower2 (Opcode.A))
(MachInst.D))
(rule
(Lower2 (Opcode.B))
(MachInst.E))
(rule
(Lower2 (Opcode.C))
(MachInst.F))