Add gfc_class_set_vptr.
[official-gcc.git] / gcc / testsuite / objc.dg / incomplete-type-1.m
blob60d0d8a113310e20c2195646a05fc31446f6af40
1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010.  */
2 /* { dg-do compile } */
4 #include <objc/objc.h>
6 enum type1;
7 struct type2;
9 #if defined(__has_attribute) && __has_attribute(objc_root_class)
10 __attribute__((objc_root_class))
11 #endif
12 @interface MyObject
13 - (void) method1: (enum type1)argument;
14 - (void) method2: (struct type2)argument;
15 @end
17 @implementation MyObject
18 - (void) method1: (enum type1)argument { /* { dg-error "does not have a known size" } */
19   return;
21 - (void) method2: (struct type2)argument { /* { dg-error "does not have a known size" } */
22   return;
24 @end