3 // Copyright (C) 2002 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 14 Sep 2002 <nathan@codesourcery.com>
6 // PR 7768 template dtor pretty function wrong
10 static size_t current = 0;
11 static bool error = false;
13 static char const *names[] =
15 "X<T>::X() [with T = void]",
16 "X<T>::~X() [with T = void]",
20 void Verify (char const *ptr)
22 error = strcmp (ptr, names[current++]);
28 X() { Verify (__PRETTY_FUNCTION__); }
29 ~X() { Verify (__PRETTY_FUNCTION__); }