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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [pragma-2.mm] - Rev 750

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

/* It is OK to use #pragma inside @implementation body. This test checks that.  */
/* Ziemowit Laski  <zlaski@apple.com>.  */

@interface A
{
   int p;
}
+(int) foo;
-(int) bar;
@end

@implementation A
#pragma mark -
#pragma mark init / dealloc
+ (int)foo {
  return 1;
}
#pragma mark -
#pragma mark Private Functions
- (int)bar {
  return 2;
}
@end

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

powered by: WebSVN 2.1.0

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