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
* c-common.c (catenate_strings): New.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
delete3.C
blob
bde62d968b4a11abfa1cd1a17b49526b118611e5
1
// { dg-do assemble }
2
// PRMS Id: 6093
3
4
class A {
5
public:
6
A();
7
~A();
8
protected:
9
void operator delete(void *); // { dg-error "" } protected
10
};
11
12
A::~A()
13
{
14
}
15
16
void foo(A *p)
17
{
18
delete p; // { dg-error "" } in this context
19
}