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

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

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

int i;

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