diff options
author | Joseph Myers <jsm@polyomino.org.uk> | 2004-08-03 23:09:13 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2004-08-03 23:09:13 +0100 |
commit | 9cbe78fbeb3898ab7f59faba4f027f9fd0a1a4ee (patch) | |
tree | a534cd9d6e051f107ee4ae8faa1e824cf9bddaeb /gcc/testsuite/gcc.dg/format | |
parent | 2e847896896e3283a0551eeb46b4d3c3c8211d2a (diff) | |
download | gcc-9cbe78fbeb3898ab7f59faba4f027f9fd0a1a4ee.zip gcc-9cbe78fbeb3898ab7f59faba4f027f9fd0a1a4ee.tar.gz gcc-9cbe78fbeb3898ab7f59faba4f027f9fd0a1a4ee.tar.bz2 |
c-decl.c (implicitly_declare): Diagnose incompatible implicit declarations.
* c-decl.c (implicitly_declare): Diagnose incompatible implicit
declarations.
testsuite:
* gcc.dg/redecl-5.c: New test.
* gcc.dg/format/attr-6.c: Expect warning for implicit declaration
of scanf.
From-SVN: r85509
Diffstat (limited to 'gcc/testsuite/gcc.dg/format')
-rw-r--r-- | gcc/testsuite/gcc.dg/format/attr-6.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/format/attr-6.c b/gcc/testsuite/gcc.dg/format/attr-6.c index 4e95cfb..0f68322 100644 --- a/gcc/testsuite/gcc.dg/format/attr-6.c +++ b/gcc/testsuite/gcc.dg/format/attr-6.c @@ -18,4 +18,5 @@ void foo (const char *s, int *p) { scanf("%ld", p); /* { dg-warning "format" "implicit scanf" } */ + /* { dg-warning "implicit" "implicit decl warning" { target *-*-* } 20 } */ } |