OSDN Git Service

2010-03-25 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / typedef-alias-1.m
1 /* Typedefs of ObjC types should work without any bogus warnings. */
2 /* { dg-do compile } */
3
4 #include "../objc-obj-c++-shared/Object1.h"
5
6 typedef Object MyObject;
7
8 int main (int argc, const char * argv[])
9 {
10     Object* a = nil;
11     MyObject* b = a;
12     Object* c = b;
13
14     return 0;
15 }
16