]> gcc.gnu.org Git - gcc.git/commitdiff
new
authorJason Merrill <jason@gcc.gnu.org>
Thu, 29 Oct 1998 21:10:23 +0000 (16:10 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 29 Oct 1998 21:10:23 +0000 (16:10 -0500)
From-SVN: r23434

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

diff --git a/gcc/testsuite/g++.old-deja/g++.other/conv4.C b/gcc/testsuite/g++.old-deja/g++.other/conv4.C
new file mode 100644 (file)
index 0000000..0ed0ee8
--- /dev/null
@@ -0,0 +1,17 @@
+// Testcase for proper hiding of base conversion ops.
+
+struct A
+{
+  operator const char *();
+};
+
+struct B : public A
+{
+  operator const char *() { return 0; }
+};
+
+int main( void )
+{
+  B b;
+  const char *p = b;
+}
This page took 0.075327 seconds and 5 git commands to generate.