FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / dtor4.C
blobf23ab78256038c1c5af38dccb588a2140df34f51
1 // Build don't link:
3 struct S1 {
4   ~S1(); // ERROR - candidate
5 };
7 S1::~S1() const
8 { // ERROR - prototype does not match 
12 struct S2 {
13   ~S2() volatile; // ERROR - destructors may not be volatile
17 template <class T>
18 struct S3 {
19   ~S3(); // ERROR - candidate
22 template <class T>
23 S3<T>::~S3() volatile
24 { // ERROR - prototype does not match 
28 template <class T>
29 struct S4 {
30   ~S4() const; // ERROR - destructors may not be const