From 9c6d0737261b28d56d86150eb39b5bf6d039dbf3 Mon Sep 17 00:00:00 2001 From: jason Date: Tue, 14 Jul 2009 18:16:03 +0000 Subject: 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 --- gcc/testsuite/gcc.dg/compat/compat-common.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/testsuite/gcc.dg/compat') 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; -- cgit v1.2.1