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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [property/] [synthesize-5.m] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 704 jeremybenn
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010.  */
2
/* { dg-do compile } */
3
 
4
/* Test that @synthesize does not ICE if asked to use a non-existing
5
   ivar.  */
6
 
7
#include <objc/objc.h>
8
 
9
@interface Test
10
@property int v1;
11
@end
12
 
13
@implementation Test
14
@synthesize v1;       /* { dg-error "must be an existing ivar" } */
15
@end
16
/* { dg-warning "incomplete implementation" "" { target *-*-* } 15 } */
17
/* { dg-warning "method definition for .-setV1:. not found" "" { target *-*-* } 15 } */
18
/* { dg-warning "method definition for .-v1. not found" "" { target *-*-* } 15 } */

powered by: WebSVN 2.1.0

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