typedef-alias-1.mm: New.

[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.

From-SVN: r101281
This commit is contained in:
Ziemowit Laski 2005-06-24 00:22:52 +00:00 committed by Ziemowit Laski
parent 602174abff
commit 0c9b7e9b5a
3 changed files with 37 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-06-23 Ziemowit Laski <zlaski@apple.com>
* obj-c++.dg/typedef-alias-1.mm: New.
* objc.dg/typedef-alias-1.m: New.
2005-06-23 Jeff Law <law@redhat.com>
* gcc.dg/tree-ssa/vrp16.c: New test.

View File

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

View File

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