Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / obj-c++.dg / pragma-2.mm
blob14c4d7928a24f25cc844cfc65f2b9e5380131ef9
1 /* It is OK to use #pragma inside @implementation body. This test checks that.  */
2 /* Ziemowit Laski  <zlaski@apple.com>.  */
4 @interface A
6    int p;
8 +(int) foo;
9 -(int) bar;
10 @end
12 @implementation A
13 #pragma mark -
14 #pragma mark init / dealloc
15 + (int)foo {
16   return 1;
18 #pragma mark -
19 #pragma mark Private Functions
20 - (int)bar {
21   return 2;
23 @end