From 8c0c5eaf3e41653f147ad3ec99e1fb1b1c1a8943 Mon Sep 17 00:00:00 2001 From: no-author Date: Mon, 21 Mar 2005 22:51:24 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'apple-gcc-5002'. git-svn-id: https://gcc.gnu.org/svn/gcc/tags/apple-gcc-5002@96841 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/obj-c++.dg/cxx-class-1.mm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 gcc/testsuite/obj-c++.dg/cxx-class-1.mm (limited to 'gcc/testsuite/obj-c++.dg/cxx-class-1.mm') diff --git a/gcc/testsuite/obj-c++.dg/cxx-class-1.mm b/gcc/testsuite/obj-c++.dg/cxx-class-1.mm new file mode 100644 index 00000000000..0c63e70d9ce --- /dev/null +++ b/gcc/testsuite/obj-c++.dg/cxx-class-1.mm @@ -0,0 +1,20 @@ +/* APPLE LOCAL file Objective-C++ */ +/* Test that Objective-C++ is able to chew through a simple C++ class hierarchy. + This was broken in earlier ObjC++ incarnations. */ + +struct foo +{ + foo(void *a) {}; +}; + +struct bar : foo +{ + bar() : foo((char*)0) {}; +}; + +class apple : foo +{ +public: + apple() : foo(0) { }; +}; + -- cgit v1.2.3