4 int main(int argc
, char **argv
) {
5 // Print the string that the test looks for to make sure stdout and stderr
7 std::cout
<< "stdout_needle" << std::flush
;
8 std::cerr
<< "stderr_needle" << std::flush
;
10 // Work around a timing issue that sometimes prevents stderr from being
12 std::this_thread::sleep_for(std::chrono::seconds(1));
14 // This is unreachable during normal test execution as we don't pass any
15 // (or +100) arguments. This still needs to be theoretically reachable code
16 // so that the compiler will generate code for this (that we can set a
19 return 1; // break here