summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-04 19:12:58 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-04 19:12:58 +0000
commita2ec7e9b09316ac02da178c17ff5d5246a50cd94 (patch)
treec952e711064e89df66eea282e0b5fa44a2d8662c /gcc
parent3e1bbee6a8a0de68fd5ffbca11a8cce7283d0eeb (diff)
downloadgcc-a2ec7e9b09316ac02da178c17ff5d5246a50cd94.tar.gz
nortel regressions since 97r1 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24093 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.benjamin/16077.C28
-rw-r--r--gcc/testsuite/g++.old-deja/g++.benjamin/18208.C25
2 files changed, 53 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 100644
index 00000000000..f38154ec507
--- /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 -
+}
+
+
+
+
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/18208.C b/gcc/testsuite/g++.old-deja/g++.benjamin/18208.C
new file mode 100644
index 00000000000..7ec1dc09098
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.benjamin/18208.C
@@ -0,0 +1,25 @@
+// 981204 bkoz
+// g++/18208
+// Build don't link:
+
+typedef unsigned int uint_32;
+
+class puertorico {
+public:
+ void *f ();
+private:
+ uint_32 member;
+};
+
+void foo( )
+{
+ uint_32 ui;
+ puertorico obj;
+
+ // Bug using static_cast<>
+ ui = static_cast<uint_32>(obj); // ERROR - // ERROR -
+
+ // Bug when missing the pair of braces
+ ui = (uint_32) obj.f; // ERROR - // ERROR -
+}
+