OSDN Git Service

* class.c (resolve_address_of_overloaded_function): Don't
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / linkage2.C
1 // { dg-do assemble  }
2 // From: Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>    
3 extern "C" 
4 {
5 typedef struct {int dummy[10];} *GDBM_FILE;
6 extern GDBM_FILE gdbm_open();
7 }
8
9 typedef struct { int dummy[10]; } *FAIL_FILE;
10 extern FAIL_FILE fail_open(); // { dg-error "" } non-local function
11
12 typedef struct { int dummy[10]; } *SUCCESS_FILE, S;
13 extern SUCCESS_FILE success_open();
14