diff options
| author | herbelin | 2011-07-16 20:35:26 +0000 |
|---|---|---|
| committer | herbelin | 2011-07-16 20:35:26 +0000 |
| commit | 3c0fa55426e61884a8a67661025cc7a32ecc77ac (patch) | |
| tree | f5eb4d705e49b103cea10a883e5c1c583d4c41c9 /test-suite/output | |
| parent | bb7d7b4c22fbe037781b2418002efe09d6c3a409 (diff) | |
This adds two option tables 'Printing Record' and 'Printing Constructor'
that forces a given type to always be printed as a record, or with a
constructor, regardless of the setting of 'Printing Records'.
And this is that patch that controls printing by type.
(patch from Tom Prince)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14286 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'test-suite/output')
| -rw-r--r-- | test-suite/output/Record.out | 16 | ||||
| -rw-r--r-- | test-suite/output/Record.v | 21 |
2 files changed, 37 insertions, 0 deletions
diff --git a/test-suite/output/Record.out b/test-suite/output/Record.out new file mode 100644 index 0000000000..36d643a447 --- /dev/null +++ b/test-suite/output/Record.out @@ -0,0 +1,16 @@ +{| field := 5 |} + : test +{| field := 5 |} + : test +{| field_r := 5 |} + : test_r +build_c 5 + : test_c +build 5 + : test +build 5 + : test +{| field_r := 5 |} + : test_r +build_c 5 + : test_c diff --git a/test-suite/output/Record.v b/test-suite/output/Record.v new file mode 100644 index 0000000000..6aa3df9830 --- /dev/null +++ b/test-suite/output/Record.v @@ -0,0 +1,21 @@ +Record test := build { field : nat }. +Record test_r := build_r { field_r : nat }. +Record test_c := build_c { field_c : nat }. + +Add Printing Constructor test_c. +Add Printing Record test_r. + +Set Printing Records. + +Check build 5. +Check {| field := 5 |}. + +Check build_r 5. +Check build_c 5. + +Unset Printing Records. + +Check build 5. +Check {| field := 5 |}. +Check build_r 5. +Check build_c 5. |
