OSDN Git Service

In gcc/testsuite/:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / incomplete-type-1.m
1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010.  */
2 /* { dg-do compile } */
3
4 #include <objc/objc.h>
5
6 enum type1;
7 struct type2;
8
9 @interface MyObject
10 - (void) method1: (enum type1)argument;
11 - (void) method2: (struct type2)argument;
12 @end
13
14 @implementation MyObject
15 - (void) method1: (enum type1)argument { /* { dg-error "does not have a known size" } */
16   return;
17 }
18 - (void) method2: (struct type2)argument { /* { dg-error "does not have a known size" } */
19   return;
20 }
21 @end
22