This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Two more ObjC/ObjC++ test cases
- From: Ziemowit Laski <zlaski at apple dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 23 Jun 2005 17:22:41 -0700
- Subject: PATCH: Two more ObjC/ObjC++ test cases
This used to be broken in earlier incantations of gcc-4.0...
[gcc/testsuite/ChangeLog]
2005-06-23 Ziemowit Laski <zlaski@apple.com>
* obj-c++.dg/typedef-alias-1.mm: New.
* objc.dg/typedef-alias-1.m: New.
Index: gcc/testsuite/obj-c++.dg/typedef-alias-1.mm
===================================================================
RCS file: gcc/testsuite/obj-c++.dg/typedef-alias-1.mm
diff -N gcc/testsuite/obj-c++.dg/typedef-alias-1.mm
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ gcc/testsuite/obj-c++.dg/typedef-alias-1.mm 24 Jun 2005 00:21:05
-0000
@@ -0,0 +1,16 @@
+/* Typedefs of ObjC types should work without any bogus warnings. */
+/* { dg-do compile } */
+
+#include <objc/Object.h>
+
+typedef Object MyObject;
+
+int main (int argc, const char * argv[])
+{
+ Object* a = nil;
+ MyObject* b = a;
+ Object* c = b;
+
+ return 0;
+}
+
Index: gcc/testsuite/objc.dg/typedef-alias-1.m
===================================================================
RCS file: gcc/testsuite/objc.dg/typedef-alias-1.m
diff -N gcc/testsuite/objc.dg/typedef-alias-1.m
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ gcc/testsuite/objc.dg/typedef-alias-1.m 24 Jun 2005 00:21:05
-0000
@@ -0,0 +1,16 @@
+/* Typedefs of ObjC types should work without any bogus warnings. */
+/* { dg-do compile } */
+
+#include <objc/Object.h>
+
+typedef Object MyObject;
+
+int main (int argc, const char * argv[])
+{
+ Object* a = nil;
+ MyObject* b = a;
+ Object* c = b;
+
+ return 0;
+}
+
--------------------------------------------------------------
Ziemowit Laski 1 Infinite Loop, MS 301-2K
Mac OS X Compiler Group Cupertino, CA USA 95014-2083
Apple Computer, Inc. +1.408.974.6229 Fax .5477