diff options
author | Mike Stump <mrs@apple.com> | 2002-10-26 01:15:16 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2002-10-26 01:15:16 +0000 |
commit | f0dd122b47336c311afb102bf23a369d096a82be (patch) | |
tree | 5240672c5bbb04b1d250d566fe35ba86c079b0b1 /gcc/testsuite/gcc.dg/warn-1.c | |
parent | e93ee6440d040187605f3ff56cbf01dc169f7d5e (diff) | |
download | gcc-f0dd122b47336c311afb102bf23a369d096a82be.zip gcc-f0dd122b47336c311afb102bf23a369d096a82be.tar.gz gcc-f0dd122b47336c311afb102bf23a369d096a82be.tar.bz2 |
Add gcc.dg/warn-1.c
From-SVN: r58549
Diffstat (limited to 'gcc/testsuite/gcc.dg/warn-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/warn-1.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/warn-1.c b/gcc/testsuite/gcc.dg/warn-1.c new file mode 100644 index 0000000..d966825 --- /dev/null +++ b/gcc/testsuite/gcc.dg/warn-1.c @@ -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 "" } */ +} |