blob: 1c57eefd2aefc01d2508e8332a6b71bbb6bf2540 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-Wall" } */
void
foo (int a[static 1])
{
if ((void*)0 == a) /* { dg-warning "argument" "compared to NULL" } */
return;
}
int
main ()
{
foo ((void*)0); /* { dg-warning "argument 1 null where non-null expected" } */
}