repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
PR rtl-optimization/87918
[official-gcc.git]
/
gcc
/
testsuite
/
obj-c++.dg
/
pragma-2.mm
blob
14c4d7928a24f25cc844cfc65f2b9e5380131ef9
1
/* It is OK to use #pragma inside @implementation body. This test checks that. */
2
/* Ziemowit Laski <zlaski@apple.com>. */
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