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 
test()14 void test ()
15 {
16 	delete bp;
17 }
18 
main()19 int main ()
20 {
21 	bp = (base *) 0;
22 	test ();
23 
24 	printf ("PASS\n");
25 	return 0;
26 }
27