summaryrefslogtreecommitdiff
path: root/tests/sources/0509_loop_nested.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sources/0509_loop_nested.c')
-rw-r--r--tests/sources/0509_loop_nested.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/sources/0509_loop_nested.c b/tests/sources/0509_loop_nested.c
new file mode 100644
index 0000000..54d5be6
--- /dev/null
+++ b/tests/sources/0509_loop_nested.c
@@ -0,0 +1,9 @@
+int i=0, j=0;
+
+while (i < 1000) {
+ j = 0;
+ while (j < i) {
+ j = j + 1;
+ }
+ i = i + 1;
+}