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