[ create a new paste ] login | about

Link: http://codepad.org/EZrxe4Ur    [ raw code | output | fork ]

C, pasted on May 13:
1
2
3
4
5
6
7
static int g();
extern int g(); /* g has internal linkage */

extern int j(); /* j has tentative external linkage */

int h();
static int h(); /* error */


Output:
1
2
Line 7: error: static declaration of 'h' follows non-static declaration
Line 6: error: previous declaration of 'h' was here


Create a new paste based on this one


Comments: