blob: 3f18a48bef5073e8a4a4512ce40df025c79228c5 [file] [log] [blame]
// GROUPS passed operator-delete
// Check that using the delete operator with a null pointer
// is allowed (as called for by The Book, pg. 259)
extern "C" int printf (const char *, ...);
struct base {
int member;
};
base* bp;
void test ()
{
delete bp;
}
int main ()
{
bp = (base *) 0;
test ();
printf ("PASS\n");
return 0;
}