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
6extern "C" int printf (const char *, ...);
7
8struct base {
9	int member;
10};
11
12base* bp;
13
14void test ()
15{
16	delete bp;
17}
18
19int main ()
20{
21	bp = (base *) 0;
22	test ();
23
24	printf ("PASS\n");
25	return 0;
26}
27