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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [invalid-type-1.mm] - Blame information for rev 715

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

Line No. Rev Author Line
1 703 jeremybenn
/* Contributed by Nicola Pero , November 2010.  */
2
/* { dg-do compile } */
3
#include 
4
 
5
typedef int Integer;
6
 
7
@class MyClass;
8
 
9
typedef MyClass AClass;
10
 
11
@protocol MyProtocol
12
- (void) method;
13
@end
14
 
15
Class  class_object; /* This is fine.  */
16
 
17
id  object; /* This is fine.  */
18
 
19
AClass  *object1; /* This is fine.  */
20
 
21
Integer  *object2; /* { dg-error ".Integer {aka int}. is not a template" } */
22
/* { dg-error ".MyProtocol. was not declared in this scope" "" { target *-*-* } 21 } */
23
 
24
Integer  *object3; /* { dg-error ".Integer {aka int}. is not a template" } */
25
/* { dg-error ".NonExistingProtocol. was not declared in this scope" "" { target *-*-* } 24 } */

powered by: WebSVN 2.1.0

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