diff options
Diffstat (limited to 'test_deliverable/testcases/test_GOTO.c')
-rw-r--r-- | test_deliverable/testcases/test_GOTO.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test_deliverable/testcases/test_GOTO.c b/test_deliverable/testcases/test_GOTO.c new file mode 100644 index 0000000..4aa1266 --- /dev/null +++ b/test_deliverable/testcases/test_GOTO.c @@ -0,0 +1,17 @@ +int goto_(int a) +{ + goto helloWorld; + +start_: + a += 2; + + goto end_; + +helloWorld: + a *= 3; + goto start_; + +end_: + a -= 1; + return a; +} |