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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [obj-c++.dg/] [pragma-2.mm] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 308 jeremybenn
/* It is OK to use #pragma inside @implementation body. This test checks that.  */
2
/* Ziemowit Laski  .  */
3
 
4
@interface A
5
{
6
   int p;
7
}
8
+(int) foo;
9
-(int) bar;
10
@end
11
 
12
@implementation A
13
#pragma mark -
14
#pragma mark init / dealloc
15
+ (int)foo {
16
  return 1;
17
}
18
#pragma mark -
19
#pragma mark Private Functions
20
- (int)bar {
21
  return 2;
22
}
23
@end

powered by: WebSVN 2.1.0

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