aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/10_break.sy
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/10_break.sy')
-rw-r--r--tests/functional/10_break.sy9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/functional/10_break.sy b/tests/functional/10_break.sy
new file mode 100644
index 0000000..55b40dc
--- /dev/null
+++ b/tests/functional/10_break.sy
@@ -0,0 +1,9 @@
+int main(){
+ int a=10;
+ while(a>0){
+ a=a-1;
+ if(a==5)
+ break;
+ }
+ return a;
+} \ No newline at end of file