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; +} +