Debian Codegraph @

gcc/testsuite/obj-c++.dg/pragma-2.mm

raw
1 /* It is OK to use #pragma inside @implementation body. This test checks that. */
2 /* Ziemowit Laski <[email protected]>. */
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