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