aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wnonnull-7.c
blob: e7b331a904c0fe35d20fb85f6a9f5b41e67ec433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR middle-end/101216 - spurious notes for function calls
   { dg-do compile }
   { dg-options "-O2 -w" } */

__attribute__ ((access (write_only, 1, 2))) char*
getcwd (char *, __SIZE_TYPE__);

char* f (void)
{
  char a[8];
  return getcwd (0, 8);
}

/* Expect no messages of any kind on output.
   { dg-bogus "" "" { target *-*-* } 0 } */