1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010. */
2 /* { dg-do compile } */
9 #if defined(__has_attribute) && __has_attribute(objc_root_class)
10 __attribute__((objc_root_class))
13 - (void) method1: (enum type1)argument;
14 - (void) method2: (struct type2)argument;
17 @implementation MyObject
18 - (void) method1: (enum type1)argument { /* { dg-error "does not have a known size" } */
21 - (void) method2: (struct type2)argument { /* { dg-error "does not have a known size" } */