FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / dtor12.C
blob1a9d58a5a8e24547ea3f02c22535441b82e1d661
1 // Test that we don't complain about calling a destructor on a const object.
3 #include <new>
5 struct A
7   ~A() {}
8 };
10 const A a = {};
11 int main()
13   a.~A();
14   a.A::~A();                    // gets bogus error - const violation