summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2000-08-23 17:10:53 +0000
committerDamien Doligez <damien.doligez-inria.fr>2000-08-23 17:10:53 +0000
commit6b893661dd560084a61c085dc35f3c8b3931d11b (patch)
tree9eba4e8fb5b295099e82499e7e97abff5a532f8a
parent6abd94399c49e469a8468f4ee9e777ede7a1e3e2 (diff)
test de -warn-error
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3281 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--test/Moretest/warnings.ml44
1 files changed, 44 insertions, 0 deletions
diff --git a/test/Moretest/warnings.ml b/test/Moretest/warnings.ml
new file mode 100644
index 000000000..08e2f2910
--- /dev/null
+++ b/test/Moretest/warnings.ml
@@ -0,0 +1,44 @@
+
+(* C *)
+
+let foo = ( *);;
+
+
+(* F *)
+
+let f x y = x;;
+f 1; f 1;;
+
+
+(* M *)
+
+(* duh *)
+
+
+(* P *)
+
+let 1 = 1;;
+
+
+(* S *)
+
+1; 1;;
+
+
+(* U *)
+
+match 1 with
+| 1 -> ()
+| 1 -> ()
+| _ -> ()
+;;
+
+
+(* V *)
+
+(* re-duh *)
+
+
+(* X *)
+
+(* re-re *)