new
authorJason Merrill <jason@gcc.gnu.org>
Wed, 14 Oct 1998 02:59:09 +0000 (22:59 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 14 Oct 1998 02:59:09 +0000 (22:59 -0400)
From-SVN: r23078

gcc/testsuite/g++.old-deja/g++.other/linkage2.C [new file with mode: 0644]

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 (file)
index 0000000..c9b6e2a
--- /dev/null
@@ -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();
+