aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>1998-10-13 22:59:09 -0400
committerJason Merrill <jason@gcc.gnu.org>1998-10-13 22:59:09 -0400
commit902648f892bbb961610c2018816576361a010eb7 (patch)
treef04192b63af712f59bd2368060d43a4fac67400e /gcc
parent7f7c930eec6b4eb6a5025fd7f222d4729ef59dea (diff)
downloadgcc-902648f892bbb961610c2018816576361a010eb7.zip
gcc-902648f892bbb961610c2018816576361a010eb7.tar.gz
gcc-902648f892bbb961610c2018816576361a010eb7.tar.bz2
new
From-SVN: r23078
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/linkage2.C14
1 files changed, 14 insertions, 0 deletions
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 0000000..c9b6e2a
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/linkage2.C
@@ -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();
+