Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.other / dtor12.C
blob9890e6392fc4a28e56dc7b9ecf5ce92ec59fa726
1 // { dg-do run  }
2 // Test that we don't complain about calling a destructor on a const object.
4 #include <new>
6 struct A
8   ~A() {}
9 };
11 const A a = {};
12 int main()
14   a.~A();
15   a.A::~A();                    // { dg-bogus "" } const violation