diff options
| author | Gaëtan Gilbert | 2019-02-18 14:41:55 +0100 |
|---|---|---|
| committer | Gaëtan Gilbert | 2019-02-19 13:04:42 +0100 |
| commit | 31f333031b66f7afdfc35662aca9f9f40bbccbd0 (patch) | |
| tree | 77152a6a7e652ec33c0edc6fe90a9d0407f2b129 /test-suite | |
| parent | 582ba8464962f69f0808ccdd14e7bd64e786875f (diff) | |
Fix #9595: missing non-primitive-record warning with 0 field record
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/bugs/closed/bug_9595.v | 11 |
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 }. |
