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