Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/objc.dg/typedef-alias-1.m @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 |