diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-08-25 21:11:46 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-08-25 21:11:46 +0000 |
commit | 4d5ac30e9f47263ee5925a85e0a4e6c531a4981e (patch) | |
tree | c5d660b0cc2b1511757821e913c937802626245b /gcc/testsuite/gcc.dg/pr20368-1.c | |
parent | 376d06105c079e7bcbfea0b440f938f7fe76546a (diff) | |
download | gcc-4d5ac30e9f47263ee5925a85e0a4e6c531a4981e.tar.gz |
PR c/28299
* c-decl.c (start_function): Don't try to process prototype
information from old declaration that isn't a function.
testsuite:
* gcc.dg/funcdef-var-1.c, gcc.dg/funcdef-var-2.c: New tests.
* gcc.dg/pr20368-1.c, gcc.dg/pr20368-2.c, gcc.dg/pr20368-3.c:
Expect extra diagnostics.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116435 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr20368-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr20368-1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/pr20368-1.c b/gcc/testsuite/gcc.dg/pr20368-1.c index a88c7f803b7..40ef9fe90be 100644 --- a/gcc/testsuite/gcc.dg/pr20368-1.c +++ b/gcc/testsuite/gcc.dg/pr20368-1.c @@ -7,6 +7,6 @@ extern __typeof (f) g; /* { dg-error "error: 'f' undeclared here \\(not in a fun int f (x) - float x; + float x; /* { dg-warning "warning: function declaration isn't a prototype" } */ { } |