repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
dtor12.C
blob
1a9d58a5a8e24547ea3f02c22535441b82e1d661
1
// Test that we don't complain about calling a destructor on a const object.
2
3
#include <new>
4
5
struct A
6
{
7
~A() {}
8
};
9
10
const A a = {};
11
int main()
12
{
13
a.~A();
14
a.A::~A(); // gets bogus error - const violation
15
}