aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Werror-2.c
blob: 8e08ba0857ea674ba04d27a256b4d72e1ac4bbd5 (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 "warning: .* attribute directive ignored" } */

int i;

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