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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
delete2.C
blob
c6230eef125b14f0865a5e0877c345833a34a838
1
// { dg-do assemble }
2
// PRMS Id: 5003
3
// Bug: g++ complains about calling the destructor for a const object.
4
5
struct A {
6
public:
7
~A();
8
};
9
10
const A foo ();
11
12
void bar()
13
{
14
A n;
15
n = foo(); // { dg-bogus "" } deleting const
16
}