aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/typedef-alias-1.m
blob: 608084c150455d70547b7394dd244bc6ddaa4b7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* APPLE LOCAL file mainline */
/* 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;
}