Debian Codegraph @

gcc/testsuite/g++.dg/torture/pr124130.C

raw
1 // { dg-do compile }
2
3 void __sigsetjmp_cancel() __attribute__((__returns_twice__));
4 struct basic_ostream {
5 basic_ostream &operator<<(basic_ostream &__pf(basic_ostream &)) {
6 return __pf(*this);
7 }
8 } cerr;
9 extern "C" void _exit(int);
10 enum { Exit_Internal_Error };
11 basic_ostream &report_error(basic_ostream &) { _exit(Exit_Internal_Error); }
12 void thread_pool_thread_main() {
13 __sigsetjmp_cancel();
14 cerr << report_error;
15 }