• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <map>
2 
3 #define intint_map std::map<int, int>
4 
5 int g_the_foo = 0;
6 
thefoo_rw(int arg=1)7 int thefoo_rw(int arg = 1)
8 {
9 	if (arg < 0)
10 		arg = 0;
11 	if (!arg)
12 		arg = 1;
13 	g_the_foo += arg;
14 	return g_the_foo;
15 }
16 
main()17 int main()
18 {
19     intint_map ii;
20 
21     for (int i = 0; i < 15; i++)
22     {
23         ii[i] = i + 1;
24         thefoo_rw(i); // break here
25     }
26 
27     ii.clear();
28 
29     for (int j = 0; j < 15; j++)
30     {
31         ii[j] = j + 1;
32         thefoo_rw(j); // break here
33     }
34 
35     return 0;
36 }
37