gcc/testsuite/objc.dg/typedef-alias-1.m
raw| 1 | /* Typedefs of ObjC types should work without any bogus warnings. */ |
| 2 | /* { dg-do compile } */ |
| 3 | |
| 4 | #include "../objc-obj-c++-shared/TestsuiteObject.h" |
| 5 | #include <objc/objc.h> |
| 6 | |
| 7 | typedef TestsuiteObject MyObject; |
| 8 | |
| 9 | int main (int argc, const char * argv[]) |
| 10 | { |
| 11 | TestsuiteObject* a = nil; |
| 12 | MyObject* b = a; |
| 13 | TestsuiteObject* c = b; |
| 14 | |
| 15 | return 0; |
| 16 | } |
| 17 |