1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/* { dg-additional-options "-std=gnu17 -Wno-implicit-int" } */ extern void foo (void *) __attribute__((nonnull)); void en (jm) { } void p2 () { char *rl = 0; en (); foo (rl); /* { dg-warning "use of NULL 'rl' where non-null expected" } */ }