Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / benchmarks / continue / main.cpp
blobd715a1150d0607e00e1ae020415a154728ca9828
1 #include <map>
3 #define intint_map std::map<int, int>
5 int g_the_foo = 0;
7 int thefoo_rw(int arg = 1)
9 if (arg < 0)
10 arg = 0;
11 if (!arg)
12 arg = 1;
13 g_the_foo += arg;
14 return g_the_foo;
17 int main()
19 intint_map ii;
21 for (int i = 0; i < 15; i++)
23 ii[i] = i + 1;
24 thefoo_rw(i); // break here
27 ii.clear();
29 for (int j = 0; j < 15; j++)
31 ii[j] = j + 1;
32 thefoo_rw(j); // break here
35 return 0;