Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / objc.dg / class-extension-1.m
blob9d6658a63993196adfe7b6e065d42f7c164c44e7
1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010.  */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-Wno-objc-root-class" } */
5 /* This test tests the basic of class extensions.  */
7 #include <objc/objc.h>
9 @interface MyObject
11   Class isa;
13 - (int) test;
14 @end
16 @interface MyObject ()
17 - (int) test2;
18 - (int) test3;
19 @end
21 @implementation MyObject
22 - (int) test
24   return 20;
26 - (int) test2
28   return 20;
30 @end /* { dg-warning "incomplete implementation of class .MyObject." } */
31      /* { dg-warning "method definition for .-test3. not found" "" { target *-*-* } .-1 } */