aboutsummaryrefslogtreecommitdiffhomepage
path: root/etc/isar
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2009-08-28 11:10:11 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2009-08-28 11:10:11 +0000
commit2e2334dcdb43bb645a5472e3ea5340e82e9d5308 (patch)
tree766eb2236664b1fafec83708d49ea75e2a7ae29a /etc/isar
parent48ebdf6081d0b702260d54cc1a1e1339910a7ea4 (diff)
Attempt to duplicate Dixon bug
Diffstat (limited to 'etc/isar')
-rw-r--r--etc/isar/BigErrors.thy20
-rw-r--r--etc/isar/BigErrorsNested.thy6
2 files changed, 26 insertions, 0 deletions
diff --git a/etc/isar/BigErrors.thy b/etc/isar/BigErrors.thy
new file mode 100644
index 00000000..803fdf29
--- /dev/null
+++ b/etc/isar/BigErrors.thy
@@ -0,0 +1,20 @@
+(* See http://proofgeneral.inf.ed.ac.uk/trac/ticket/274 *)
+
+theory BigErrors imports Pure
+begin
+
+consts foo :: 'a;
+consts bar :: 'a;
+
+ML {* warning (cat_lines (List.tabulate (300,K "This is a big warning message"))); *}
+
+(* Attempt to get a big error with "error" fails, but we can use printing function
+ (see FaultyErrors.thy) *)
+
+ML {* Output.error_msg (cat_lines (List.tabulate (10000,K "This is a big error message"))); *}
+
+(* Note about FaultyErrors: the above generates an error
+ interactively but does *not* generate an error when
+ required by another theory, see, BigErrorsNested *)
+
+end;
diff --git a/etc/isar/BigErrorsNested.thy b/etc/isar/BigErrorsNested.thy
new file mode 100644
index 00000000..69fa7142
--- /dev/null
+++ b/etc/isar/BigErrorsNested.thy
@@ -0,0 +1,6 @@
+(* See http://proofgeneral.inf.ed.ac.uk/trac/ticket/274 *)
+
+theory BigErrorsNested imports BigErrors
+begin
+
+end