diff options
author | qunyanm <unknown> | 2016-01-05 10:14:00 -0800 |
---|---|---|
committer | qunyanm <unknown> | 2016-01-05 10:14:00 -0800 |
commit | bfd722fb0f5654fac4c3510625e5eec0a09cdfd1 (patch) | |
tree | cc1694a658b47549adae87046ce94824a50556dd /Test | |
parent | d1b680b7e97bd81ed682271717b4f073603bfe75 (diff) |
Fix issue 116. Add the missing @ for the generated c# code.
Diffstat (limited to 'Test')
-rw-r--r-- | Test/dafny4/Bug116.dfy | 15 | ||||
-rw-r--r-- | Test/dafny4/Bug116.dfy.expect | 3 |
2 files changed, 18 insertions, 0 deletions
diff --git a/Test/dafny4/Bug116.dfy b/Test/dafny4/Bug116.dfy new file mode 100644 index 00000000..9fd30597 --- /dev/null +++ b/Test/dafny4/Bug116.dfy @@ -0,0 +1,15 @@ +// RUN: %dafny "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+datatype struct = S // this is ok
+
+method Main()
+{
+ var s := S; // this line generates illegal C# code
+ print s;
+}
+
+
+
+
+
diff --git a/Test/dafny4/Bug116.dfy.expect b/Test/dafny4/Bug116.dfy.expect new file mode 100644 index 00000000..b0cf7300 --- /dev/null +++ b/Test/dafny4/Bug116.dfy.expect @@ -0,0 +1,3 @@ +
+Dafny program verifier finished with 2 verified, 0 errors
+Compiled assembly into Bug116.exe
|