Commit f0dd122b by Mike Stump Committed by Mike Stump

Add gcc.dg/warn-1.c

From-SVN: r58549
parent e93ee644
2002-10-25 Mike Stump <mrs@apple.com>
* gcc.dg/warn-1.c: New test.
2002-10-25 Zack Weinberg <zack@codesourcery.com> 2002-10-25 Zack Weinberg <zack@codesourcery.com>
* g++.dg/template/typename3.C: New test. * g++.dg/template/typename3.C: New test.
......
/* 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 "" } */
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment