diff options
author | Joseph Myers <joseph@codesourcery.com> | 2006-08-25 22:11:46 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2006-08-25 22:11:46 +0100 |
commit | d8890adf2810806a04e98ba517ac87b27b770ffa (patch) | |
tree | c5d660b0cc2b1511757821e913c937802626245b /gcc/testsuite/gcc.dg/pr20368-1.c | |
parent | 02709c7f68600ee88d126671b06012f8e90769b5 (diff) | |
download | gcc-d8890adf2810806a04e98ba517ac87b27b770ffa.zip gcc-d8890adf2810806a04e98ba517ac87b27b770ffa.tar.gz gcc-d8890adf2810806a04e98ba517ac87b27b770ffa.tar.bz2 |
re PR c/28299 (ICE with -Wmissing-prototypes)
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.
From-SVN: r116435
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 a88c7f8..40ef9fe 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" } */ { } |