summaryrefslogtreecommitdiffstats
path: root/languages/cpp/debugger/tests/infinite_loop/infinite_loop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/debugger/tests/infinite_loop/infinite_loop.cpp')
-rw-r--r--languages/cpp/debugger/tests/infinite_loop/infinite_loop.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/languages/cpp/debugger/tests/infinite_loop/infinite_loop.cpp b/languages/cpp/debugger/tests/infinite_loop/infinite_loop.cpp
new file mode 100644
index 00000000..ca90a055
--- /dev/null
+++ b/languages/cpp/debugger/tests/infinite_loop/infinite_loop.cpp
@@ -0,0 +1,17 @@
+
+int foo()
+{
+ int i = 0;
+ for(;;)
+ {
+ i = i+1;
+ }
+ return i;
+}
+
+int main()
+{
+ int r = 10;
+ r += foo();
+ return r;
+} \ No newline at end of file