aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/warn-1.c
blob: 5039abcb8a535aaa6520a3418775052338d8480b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* The compiler used to say passing arg 0 of, which is wrong.  */
/* Radar 3069179 */

/* { dg-options "-O3" } */

static void foo (p)
     int p;
{	/* { dg-warning "passing arg of" } */
}

static void bar (void)
{
  void *vp;

  foo (vp);	/* { dg-warning "" } */
}

void (*tourist_guide[]) (void) = { &bar };