aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.apple/Wmost.c
blob: 6e1d33425397fc3c029416c793bf85fbe2699020 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* APPLE LOCAL file -Wmost */

/* { dg-do compile } */
/* { dg-options "-Wmost" } */

int baz (void);

int
foo ()
{
  int loc;

  bar ();  /* { dg-warning "implicit declaration" } */

  if (loc = baz ())  /* be quiet about this */
    return 1;
  return 0;
}