summaryrefslogtreecommitdiff
path: root/Test/irondafny0
diff options
context:
space:
mode:
authorGravatar Michael Lowell Roberts <mirobert@microsoft.com>2015-06-12 11:12:35 -0700
committerGravatar Michael Lowell Roberts <mirobert@microsoft.com>2015-06-12 11:12:35 -0700
commita297fb4b9e6c0b915b5bb5bd85050b26a9ed7e3b (patch)
tree3256ae3d3cdb907b55b52588310f061772e2986a /Test/irondafny0
parent1e9a9af1700f67dde62e8ceb81aa16e13de0e3fb (diff)
added -optimize option to compiler.
Diffstat (limited to 'Test/irondafny0')
-rw-r--r--Test/irondafny0/optimize0.dfy6
-rw-r--r--Test/irondafny0/optimize0.dfy.expect6
2 files changed, 12 insertions, 0 deletions
diff --git a/Test/irondafny0/optimize0.dfy b/Test/irondafny0/optimize0.dfy
new file mode 100644
index 00000000..865d8707
--- /dev/null
+++ b/Test/irondafny0/optimize0.dfy
@@ -0,0 +1,6 @@
+// RUN: %dafny /compile:3 /optimize /print:"%t.print" /dprint:"%t.dprint" "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+method Main() {
+ print "o hai!";
+}
diff --git a/Test/irondafny0/optimize0.dfy.expect b/Test/irondafny0/optimize0.dfy.expect
new file mode 100644
index 00000000..6b3e13c5
--- /dev/null
+++ b/Test/irondafny0/optimize0.dfy.expect
@@ -0,0 +1,6 @@
+
+Dafny program verifier finished with 2 verified, 0 errors
+Program compiled successfully
+Running...
+
+o hai! \ No newline at end of file