OSDN Git Service

* call.c (add_candidates): Add first_arg and return_type parms.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.brendan / delete2.C
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 }