diff options
author | no-author <no-author@gcc.gnu.org> | 2004-05-24 02:23:12 +0000 |
---|---|---|
committer | no-author <no-author@gcc.gnu.org> | 2004-05-24 02:23:12 +0000 |
commit | 3ff85b2c52e4db494c6facb65a5bd7768ccd8843 (patch) | |
tree | 5da6bbd60844f1cad239f017eebb97a849d3f35d /gcc/testsuite/gcc.apple/Wmost.c | |
parent | 03846eafd7c275b583a97c40554da04c978a110a (diff) |
This commit was manufactured by cvs2svn to create tagapple/gcc-1755
'apple-gcc-1755'.
git-svn-id: https://gcc.gnu.org/svn/gcc/tags/apple-gcc-1755@82190 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.apple/Wmost.c')
-rw-r--r-- | gcc/testsuite/gcc.apple/Wmost.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.apple/Wmost.c b/gcc/testsuite/gcc.apple/Wmost.c new file mode 100644 index 00000000000..6e1d3342539 --- /dev/null +++ b/gcc/testsuite/gcc.apple/Wmost.c @@ -0,0 +1,19 @@ +/* APPLE LOCAL file -Wmost */ + +/* { dg-do compile } */ +/* { dg-options "-Wmost" } */ + +int baz (void); + +int +foo () +{ + int loc; + + bar (); /* { dg-warning "implicit declaration" } */ + + if (loc = baz ()) /* be quiet about this */ + return 1; + return 0; +} + |