From 0c9b7e9b5a0aa61d944c40759911d9b3638e1ab4 Mon Sep 17 00:00:00 2001 From: Ziemowit Laski Date: Fri, 24 Jun 2005 00:22:52 +0000 Subject: [PATCH] typedef-alias-1.mm: New. [gcc/testsuite/ChangeLog] 2005-06-23 Ziemowit Laski * obj-c++.dg/typedef-alias-1.mm: New. * objc.dg/typedef-alias-1.m: New. From-SVN: r101281 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/obj-c++.dg/typedef-alias-1.mm | 16 ++++++++++++++++ gcc/testsuite/objc.dg/typedef-alias-1.m | 16 ++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 gcc/testsuite/obj-c++.dg/typedef-alias-1.mm create mode 100644 gcc/testsuite/objc.dg/typedef-alias-1.m diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bece831b8ec..4a59413ddf8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-06-23 Ziemowit Laski + + * obj-c++.dg/typedef-alias-1.mm: New. + * objc.dg/typedef-alias-1.m: New. + 2005-06-23 Jeff Law * gcc.dg/tree-ssa/vrp16.c: New test. diff --git a/gcc/testsuite/obj-c++.dg/typedef-alias-1.mm b/gcc/testsuite/obj-c++.dg/typedef-alias-1.mm new file mode 100644 index 00000000000..beed7270121 --- /dev/null +++ b/gcc/testsuite/obj-c++.dg/typedef-alias-1.mm @@ -0,0 +1,16 @@ +/* Typedefs of ObjC types should work without any bogus warnings. */ +/* { dg-do compile } */ + +#include + +typedef Object MyObject; + +int main (int argc, const char * argv[]) +{ + Object* a = nil; + MyObject* b = a; + Object* c = b; + + return 0; +} + diff --git a/gcc/testsuite/objc.dg/typedef-alias-1.m b/gcc/testsuite/objc.dg/typedef-alias-1.m new file mode 100644 index 00000000000..beed7270121 --- /dev/null +++ b/gcc/testsuite/objc.dg/typedef-alias-1.m @@ -0,0 +1,16 @@ +/* Typedefs of ObjC types should work without any bogus warnings. */ +/* { dg-do compile } */ + +#include + +typedef Object MyObject; + +int main (int argc, const char * argv[]) +{ + Object* a = nil; + MyObject* b = a; + Object* c = b; + + return 0; +} +