diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-07-14 18:16:03 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-07-14 18:16:03 +0000 |
commit | 9c6d0737261b28d56d86150eb39b5bf6d039dbf3 (patch) | |
tree | 0b8b5bc66f8f98728e58252f4589aa8898afd0df /gcc/testsuite/gcc.dg/compat | |
parent | a9bbaa3616f2107f7c0aac53ee43f3f4dbc2edc4 (diff) | |
download | gcc-9c6d0737261b28d56d86150eb39b5bf6d039dbf3.tar.gz |
PR c++/37276
* decl.c (decls_match): A non-extern-C declaration doesn't match
a builtin extern-C declaration.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149638 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/compat')
-rw-r--r-- | gcc/testsuite/gcc.dg/compat/compat-common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/compat/compat-common.h b/gcc/testsuite/gcc.dg/compat/compat-common.h index 40d4e08f9f1..8a92ea3e606 100644 --- a/gcc/testsuite/gcc.dg/compat/compat-common.h +++ b/gcc/testsuite/gcc.dg/compat/compat-common.h @@ -47,5 +47,9 @@ #endif #endif +#ifdef __cplusplus +extern "C" void abort (void); +#else extern void abort (void); +#endif extern int fails; |