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
reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
delete2.C
blob
a917003432ff0aff0de5f286aa068d65ddb39d0e
1
// { dg-do run }
2
// GROUPS passed operator-delete
3
// Check that using the delete operator with a null pointer
4
// is allowed (as called for by The Book, pg. 259)
5
6
extern "C" int printf (const char *, ...);
7
8
struct base {
9
int member;
10
};
11
12
base* bp;
13
14
void test ()
15
{
16
delete bp;
17
}
18
19
int main ()
20
{
21
bp = (base *) 0;
22
test ();
23
24
printf ("PASS\n");
25
return 0;
26
}