aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2019-03-12 12:57:33 +0100
committerEmilio Jesus Gallego Arias2019-03-12 12:57:33 +0100
commita5fc75ae3eac4bb2162c624f9d25b53dba022f01 (patch)
tree8ea06aea8de163f3a3570500f7123aa20b27d38b /test-suite
parent10c115915ec93b212b75f2fb3073624e6b554840 (diff)
parent31f333031b66f7afdfc35662aca9f9f40bbccbd0 (diff)
Merge PR #9596: Fix #9595: missing non-primitive-record warning with 0 field record
Reviewed-by: ejgallego
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/bug_9595.v11
1 files changed, 11 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_9595.v b/test-suite/bugs/closed/bug_9595.v
new file mode 100644
index 0000000000..312ed7d045
--- /dev/null
+++ b/test-suite/bugs/closed/bug_9595.v
@@ -0,0 +1,11 @@
+Set Primitive Projections.
+Set Warnings "+non-primitive-record".
+
+(* 0 fields *)
+Fail Record foo := { a := 0 }.
+
+(* anonymous field *)
+Fail Record foo := { _ : nat }.
+
+(* squashed *)
+Fail Record foo : Prop := { a : nat }.