summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/pragma-2.mm
blob: 14c4d7928a24f25cc844cfc65f2b9e5380131ef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* 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