OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
5039abcb8a535aaa6520a3418775052338d8480b
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
warn-1.c
1
/* The compiler used to say passing arg 0 of, which is wrong. */
2
/* Radar 3069179 */
3
4
/* { dg-options "-O3" } */
5
6
static void foo (p)
7
int p;
8
{ /* { dg-warning "passing arg of" } */
9
}
10
11
static void bar (void)
12
{
13
void *vp;
14
15
foo (vp); /* { dg-warning "" } */
16
}
17
18
void (*tourist_guide[]) (void) = { &bar };