view gcc/testsuite/gcc.dg/warn-1.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* 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-bogus "passing argument 1 of" } */
}