This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]