2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / delete2.C
bloba917003432ff0aff0de5f286aa068d65ddb39d0e
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)
6 extern "C" int printf (const char *, ...); 
8 struct base {
9         int member;
12 base* bp;
14 void test ()
16         delete bp;
19 int main ()
21         bp = (base *) 0;
22         test ();
24         printf ("PASS\n");
25         return 0;