aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/testsuite/obj-c++.dg/typedef-alias-1.mm
blob: beed72701219fc00b94284b995f7afe55afe62b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}