summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.benjamin/16077.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.benjamin/16077.C')
-rwxr-xr-xgcc/testsuite/g++.old-deja/g++.benjamin/16077.C28
1 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/16077.C b/gcc/testsuite/g++.old-deja/g++.benjamin/16077.C
new file mode 100755
index 0000000..f38154e
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.benjamin/16077.C
@@ -0,0 +1,28 @@
+// 981203 bkoz
+// g++/16077
+// Build don't link:
+
+class nicaragua;
+struct colombia {
+ colombia();
+ colombia(const colombia &);
+ colombia(const nicaragua &);
+ colombia &operator= (const colombia&);
+};
+
+struct nicaragua {
+public:
+ nicaragua();
+ nicaragua(const nicaragua&);
+ operator colombia();
+};
+
+void peace(const colombia&); // WARNING - // WARNING -
+
+void foo(nicaragua& b) {
+ peace(b); // WARNING - // WARNING -
+}
+
+
+
+