summaryrefslogtreecommitdiff
path: root/Test/dafny0/OpaqueFunctionsFail.dfy
diff options
context:
space:
mode:
authorGravatar Dan Rosén <danr@chalmers.se>2014-07-07 15:09:33 -0700
committerGravatar Dan Rosén <danr@chalmers.se>2014-07-07 15:09:33 -0700
commit60208673a25423e378cc7e9672d5acf9fd6f58bc (patch)
tree32d97449302d4af7fb274825985b2d9c8d9ba008 /Test/dafny0/OpaqueFunctionsFail.dfy
parent9ee34997bf0787ce4aaee1fafc475e0728bec61d (diff)
New logical encoding of types with Is and IsAlloc
Diffstat (limited to 'Test/dafny0/OpaqueFunctionsFail.dfy')
-rw-r--r--Test/dafny0/OpaqueFunctionsFail.dfy10
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/dafny0/OpaqueFunctionsFail.dfy b/Test/dafny0/OpaqueFunctionsFail.dfy
new file mode 100644
index 00000000..ae7f81f6
--- /dev/null
+++ b/Test/dafny0/OpaqueFunctionsFail.dfy
@@ -0,0 +1,10 @@
+
+// ---------------------------------- opaque and generics
+
+// RUN: %dafny /compile:0 /print:"%t.print" /dprint:"%t.dprint" "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+// This function cannot normally be called, so the
+// generated opaquity code contains such a bad call.
+function{:opaque} zero<A>():int { 0 }
+