diff options
Diffstat (limited to 'Test/dafnyRuntimeChecking/Precondition1.dfy')
-rw-r--r-- | Test/dafnyRuntimeChecking/Precondition1.dfy | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Test/dafnyRuntimeChecking/Precondition1.dfy b/Test/dafnyRuntimeChecking/Precondition1.dfy new file mode 100644 index 00000000..1732b0bc --- /dev/null +++ b/Test/dafnyRuntimeChecking/Precondition1.dfy @@ -0,0 +1,9 @@ +method foo(x: int, y: int)
+ requires 0 <= x;
+ requires y <= 0;
+{}
+
+method Main()
+{
+ foo(2, -7);
+}
|