Debian Codegraph @

gcc/testsuite/gcc.dg/analyzer/pr93375.c

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