diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-23 07:07:33 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-23 07:07:33 +0000 |
commit | 9096068a6062917b5a214a050ee57e11654a6e24 (patch) | |
tree | 57cdce0dac387244542b1a40a789f1005b4896da /gcc/testsuite/gcc.dg/Wc++-compat.c | |
parent | 66d6257e5a22874d60fbdbc85e633bb00066da9a (diff) | |
download | gcc-9096068a6062917b5a214a050ee57e11654a6e24.tar.gz |
PR c/21668
* c-decl.c (grokdeclarator): Don't warn for 'extern const' when
compiling at the intersection of C and C++.
testsuite/
PR c/21668
* gcc.dg/Wc++-compat.c: New.
* gcc.dg/Wno-c++-compat.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107401 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/Wc++-compat.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/Wc++-compat.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/Wc++-compat.c b/gcc/testsuite/gcc.dg/Wc++-compat.c new file mode 100644 index 00000000000..aa435be9f3e --- /dev/null +++ b/gcc/testsuite/gcc.dg/Wc++-compat.c @@ -0,0 +1,9 @@ +/* Copyright (C) 2005 Free Software Foundation. + + by Gabriel Dos Reis <gdr@integrable-solutions.net> */ + +/* { dg-do compile } */ +/* { dg-options "-Wc++-compat" } */ + +extern const int foo = 42; + |