1/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010.  */
2/* { dg-do compile } */
3
4/* This test tests the basic of class extensions.  */
5
6#include <objc/objc.h>
7
8@interface MyObject
9{
10  Class isa;
11}
12- (int) test;
13@end
14
15@interface MyObject ()
16- (int) test2;
17- (int) test3;
18@end
19
20@implementation MyObject
21- (int) test
22{
23  return 20;
24}
25- (int) test2
26{
27  return 20;
28}
29@end /* { dg-warning "incomplete implementation of class .MyObject." } */
30     /* { dg-warning "method definition for .-test3. not found" "" { target *-*-* } .-1 } */
31