diff options
Diffstat (limited to 'Test/test1/FunBody.bpl')
-rw-r--r-- | Test/test1/FunBody.bpl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Test/test1/FunBody.bpl b/Test/test1/FunBody.bpl new file mode 100644 index 00000000..867942ff --- /dev/null +++ b/Test/test1/FunBody.bpl @@ -0,0 +1,13 @@ +
+function g0<beta>(x:beta) returns (beta);
+function g1<beta>() returns (beta);
+
+function {:inline true} f1() returns (int) { 13 }
+function {:inline true} f2() returns (int) { true } // wrong type
+function {:inline true} f3<alpha>(x:alpha) returns (alpha) { g0(x) }
+function {:inline true} f4<alpha>(x:alpha) returns (alpha) { g0(5) } // wrong type
+function {:inline true} f5<alpha>() returns (alpha) { g1() }
+function {:inline true} f6<alpha>() returns (alpha) { g1():int } // wrong type
+
+
+
|