Make transitive relations an oracle option
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / dtor4.C
blobb7ae370686430bcf42dd36bb6c67bbbc5b51fc59
1 // { dg-do assemble  }
3 struct S1 { // { dg-message "defined here" }
4   ~S1(); // { dg-message "candidate" }
5 };
7 S1::~S1() const // { dg-error "no declaration matches" }
12 struct S2 {
13   ~S2() volatile; // { dg-error "" } destructors may not be volatile
17 template <class T>
18 struct S3 { // { dg-message "defined here" }
19   ~S3(); // { dg-message "candidate" }
22 template <class T>
23 S3<T>::~S3() volatile  // { dg-error "no declaration matches" }
28 template <class T>
29 struct S4 {
30   ~S4() const; // { dg-error "" } destructors may not be const