gcc/testsuite/gcc.dg/Wnonnull-7.c
raw| 1 | /* PR middle-end/101216 - spurious notes for function calls |
| 2 | { dg-do compile } |
| 3 | { dg-options "-O2 -w" } */ |
| 4 | |
| 5 | __attribute__ ((access (write_only, 1, 2))) char* |
| 6 | getcwd (char *, __SIZE_TYPE__); |
| 7 | |
| 8 | char* f (void) |
| 9 | { |
| 10 | char a[8]; |
| 11 | return getcwd (0, 8); |
| 12 | } |
| 13 | |
| 14 | /* Expect no messages of any kind on output. |
| 15 | { dg-bogus "" "" { target *-*-* } 0 } */ |