2 // { dg-options "-pedantic-errors" }
3 // GROUPS passed operator-delete
5 void f(char *p, char *q[], const char *r, const char *s[])
7 delete 0; /* illegal: non-pointer */// { dg-error "" } .*expected pointer.*
8 delete (char*)0; /* no effect */
11 delete[4] q; /* ANSI forbids size arg */// { dg-error "" } anachronistic .*
12 delete r; /* no longer illegal: const */
14 delete[4] s; /* ANSI forbids size arg */// { dg-error "" } anachronistic.*