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