24f30ed448
* 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
6 lines
181 B
C
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
|