1 // Bug: g++ was failing to destroy C<int>::a because it was using two
2 // different sentry variables for construction and destruction.
4 // Some targets (e.g. those with "set_board_info needs_status_wrapper 1"
5 // in their dejagnu baseboard description) require that the status is
6 // final when exit is entered (or main returns), and not "overruled" by a
7 // destructor calling _exit. It's not really worth it to handle that.
8 // Skip if target: mmix-knuth-mmixware
10 extern "C" void _exit (int);
18 ~A(){ r -= 2; _exit (r); }
28 template <class T> A C<T>::a;