OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [class-extension-1.m] - Blame information for rev 704

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 704 jeremybenn
/* 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 *-*-* } 29 } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.