aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/Werror-2.c
blob: 65f285edd0106892f0a6e830217f162f8dd53b36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "" } */

/* This one is the baseline.  Make sure with no option we get no
   warnings.  */

void __attribute__((dj)) bar() { }	/* { dg-warning ".* attribute directive ignored" } */

int i;

void
foo ()
{
  if (&i)
    grill ();
}