Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git] / main / gcc / testsuite / g++.old-deja / g++.other / linkage2.C
blob84756a1a602be4b958639e3aa51b05640a079b89
1 // { dg-do assemble { target { ! c++11 } } }
2 // From: Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>    
3 extern "C" 
5 typedef struct {int dummy[10];} *GDBM_FILE;
6 extern GDBM_FILE gdbm_open();
9 typedef struct { int dummy[10]; } *FAIL_FILE;
10 extern FAIL_FILE fail_open(); // { dg-error "" } non-local function
12 typedef struct { int dummy[10]; } *SUCCESS_FILE, S;
13 extern SUCCESS_FILE success_open();