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:
parent
602174abff
commit
0c9b7e9b5a
@ -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.
|
||||
|
16
gcc/testsuite/obj-c++.dg/typedef-alias-1.mm
Normal file
16
gcc/testsuite/obj-c++.dg/typedef-alias-1.mm
Normal 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;
|
||||
}
|
||||
|
16
gcc/testsuite/objc.dg/typedef-alias-1.m
Normal file
16
gcc/testsuite/objc.dg/typedef-alias-1.m
Normal 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user