From: Jason Merrill Date: Wed, 14 Oct 1998 02:59:09 +0000 (-0400) Subject: new X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=902648f892bbb961610c2018816576361a010eb7;p=gcc.git new From-SVN: r23078 --- diff --git a/gcc/testsuite/g++.old-deja/g++.other/linkage2.C b/gcc/testsuite/g++.old-deja/g++.other/linkage2.C new file mode 100644 index 00000000000..c9b6e2a3d62 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/linkage2.C @@ -0,0 +1,14 @@ +// Build don't link: +// From: Klaus-Georg Adams +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(); +