diff options
Diffstat (limited to 'tests/functional/01_multiple_returns.sy')
| -rw-r--r-- | tests/functional/01_multiple_returns.sy | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/functional/01_multiple_returns.sy b/tests/functional/01_multiple_returns.sy new file mode 100644 index 0000000..71474cc --- /dev/null +++ b/tests/functional/01_multiple_returns.sy @@ -0,0 +1,12 @@ +int main() {
+ int a, b = 8, c = 12;
+ a = b + c;
+ return a;
+ int d = 9;
+ a = a * d;
+ return a;
+ const int A = 4;
+ a = (A - b) * c;
+ return a;
+ return a;
+}
\ No newline at end of file |
