new
From-SVN: r23078
This commit is contained in:
parent
7f7c930eec
commit
902648f892
1 changed files with 14 additions and 0 deletions
14
gcc/testsuite/g++.old-deja/g++.other/linkage2.C
Normal file
14
gcc/testsuite/g++.old-deja/g++.other/linkage2.C
Normal file
|
@ -0,0 +1,14 @@
|
|||
// Build don't link:
|
||||
// From: Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>
|
||||
extern "C"
|
||||
{
|
||||
typedef struct {int dummy[10];} *GDBM_FILE;
|
||||
extern GDBM_FILE gdbm_open();
|
||||
}
|
||||
|
||||
typedef struct { int dummy[10]; } *FAIL_FILE;
|
||||
extern FAIL_FILE fail_open(); // ERROR - non-local function
|
||||
|
||||
typedef struct { int dummy[10]; } *SUCCESS_FILE, S;
|
||||
extern SUCCESS_FILE success_open();
|
||||
|
Loading…
Add table
Reference in a new issue