summaryrefslogtreecommitdiff
path: root/Test/dafny0/OpaqueFunctionsFail.dfy
blob: 3895ed3c3e648b0c8a3c6c91637370ac213ec00d (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %dafny /compile:0 /print:"%t.print" /dprint:"%t.dprint" "%s" > "%t"
// RUN: %diff "%s.expect" "%t"


// ---------------------------------- opaque and generics

// This function cannot normally be called, so the
// generated opaquity code contains such a bad call.
function{:opaque} zero<A>():int { 0 }