summaryrefslogtreecommitdiffstats
path: root/languages/cpp/debugger/tests/infinite_loop/infinite_loop.cpp
blob: ca90a0550a49a1be96cad0c7ab1acd131b17ad3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

int foo()
{
    int i = 0;
    for(;;)
    {
	i = i+1;
    }
    return i;
}

int main()
{
    int r = 10;
    r += foo();    
    return r;
}