diff options
author | no-author <no-author@gcc.gnu.org> | 2005-03-21 22:51:24 +0000 |
---|---|---|
committer | no-author <no-author@gcc.gnu.org> | 2005-03-21 22:51:24 +0000 |
commit | 8c0c5eaf3e41653f147ad3ec99e1fb1b1c1a8943 (patch) | |
tree | 385606c037cd628e6bfd1e621183b3a8dbc265f9 /gcc/testsuite/obj-c++.dg/cxx-class-1.mm | |
parent | 9e88bc8754ac91301313180a1f11bbf74ed1a9dc (diff) |
This commit was manufactured by cvs2svn to create tagapple/gcc-5002
'apple-gcc-5002'.
git-svn-id: https://gcc.gnu.org/svn/gcc/tags/apple-gcc-5002@96841 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/obj-c++.dg/cxx-class-1.mm')
-rw-r--r-- | gcc/testsuite/obj-c++.dg/cxx-class-1.mm | 20 |
1 files changed, 20 insertions, 0 deletions
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) { }; +}; + |