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
Build: Fix typo ac_cv_search_pthread_crate
[official-gcc.git]
/
gcc
/
testsuite
/
obj-c++.dg
/
pragma-2.mm
blob
09feac7971f3c83587a86c886f30cb56b9aac5a3
1
/* It is OK to use #pragma inside @implementation body. This test checks that. */
2
/* Ziemowit Laski <zlaski@apple.com>. */
3
// { dg-additional-options "-Wno-objc-root-class" }
4
5
@interface A
6
{
7
int p;
8
}
9
+(int) foo;
10
-(int) bar;
11
@end
12
13
@implementation A
14
#pragma mark -
15
#pragma mark init / dealloc
16
+ (int)foo {
17
return 1;
18
}
19
#pragma mark -
20
#pragma mark Private Functions
21
- (int)bar {
22
return 2;
23
}
24
@end