bd52d17906
too large to list, but see: http://gcc.gnu.org/gcc-3.4/changes.html http://gcc.gnu.org/gcc-4.0/changes.html http://gcc.gnu.org/gcc-4.1/changes.html for the details.
17 lines
242 B
C
17 lines
242 B
C
/* The compiler used to say passing arg 0 of, which is wrong. */
|
|
/* Radar 3069179 */
|
|
|
|
/* { dg-options "-O3" } */
|
|
|
|
static void foo (p)
|
|
int p;
|
|
{
|
|
}
|
|
|
|
void bar (void)
|
|
{
|
|
void *vp;
|
|
|
|
foo (vp); /* { dg-warning "passing argument 1 of" } */
|
|
}
|