From 3c0fa55426e61884a8a67661025cc7a32ecc77ac Mon Sep 17 00:00:00 2001 From: herbelin Date: Sat, 16 Jul 2011 20:35:26 +0000 Subject: 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 --- test-suite/output/Record.out | 16 ++++++++++++++++ test-suite/output/Record.v | 21 +++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 test-suite/output/Record.out create mode 100644 test-suite/output/Record.v (limited to 'test-suite') 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. -- cgit v1.2.3