8sa1-gcc/gcc/testsuite/g++.old-deja/g++.other/linkage3.C
Mark Mitchell 24f30ed448 decl.c (warn_extern_redeclared_static): Simplify.
* decl.c (warn_extern_redeclared_static): Simplify.  Catch
	problems with extern "C" functions redeclared as static.
	(duplicate_decls): When a builtin is redeclared static, make the
	new function have internal linkage.

From-SVN: r29450
1999-09-16 01:20:45 +00:00

6 lines
181 B
C

// Build don't link:
// Origin: Mark Mitchell <mark@codesourcery.com>
extern "C" void f (); // ERROR - previous declaration
static void f () {} // ERROR - extern redeclared static