2 // Special g++ 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 */// ERROR - .*expected pointer.*
8 delete (char*)0; /* no effect */
11 delete[4] q; /* ANSI forbids size arg */// ERROR - anachronistic .*
12 delete r; /* no longer illegal: const */
14 delete[4] s; /* ANSI forbids size arg */// ERROR - anachronistic.*