Add gcc.dg/warn-1.c
From-SVN: r58549
This commit is contained in:
parent
e93ee6440d
commit
f0dd122b47
@ -1,3 +1,7 @@
|
||||
2002-10-25 Mike Stump <mrs@apple.com>
|
||||
|
||||
* gcc.dg/warn-1.c: New test.
|
||||
|
||||
2002-10-25 Zack Weinberg <zack@codesourcery.com>
|
||||
|
||||
* g++.dg/template/typename3.C: New test.
|
||||
|
16
gcc/testsuite/gcc.dg/warn-1.c
Normal file
16
gcc/testsuite/gcc.dg/warn-1.c
Normal file
@ -0,0 +1,16 @@
|
||||
/* 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 "" } */
|
||||
}
|
Loading…
Reference in New Issue
Block a user