☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gcc.dg
/
Wnonnull-8.c
☽
☼
gcc/testsuite/gcc.dg/Wnonnull-8.c
code
plain
raw
1
/* PR c/108986 */
2
/* { dg-do compile } */
3
/* { dg-options "-Wall" } */
4
5
void
6
foo (int a[static 7])
7
{
8
}
9
10
int
11
main ()
12
{
13
foo ((int *) 0); /* { dg-warning "argument 1 null where non-null expected" } */
14
}