Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / functionalities / postmortem / wow64_minidump / fizzbuzz.cpp
blob295d4a1f24db2fa95c7fb43e0bd4605c5fa4c01a
1 // A sample program for getting minidumps on Windows.
3 #include <iostream>
5 bool
6 fizz(int x)
8 return x % 3 == 0;
11 bool
12 buzz(int x)
14 return x % 5 == 0;
17 int
18 main()
20 int *buggy = 0;
22 for (int i = 1; i <= 100; ++i)
24 if (fizz(i)) std::cout << "fizz";
25 if (buzz(i)) std::cout << "buzz";
26 if (!fizz(i) && !buzz(i)) std::cout << i;
27 std::cout << '\n';
30 return *buggy;