Build: Fix typo ac_cv_search_pthread_crate
[official-gcc.git] / gcc / testsuite / obj-c++.dg / pragma-2.mm
blob09feac7971f3c83587a86c886f30cb56b9aac5a3
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" }
5 @interface A
7    int p;
9 +(int) foo;
10 -(int) bar;
11 @end
13 @implementation A
14 #pragma mark -
15 #pragma mark init / dealloc
16 + (int)foo {
17   return 1;
19 #pragma mark -
20 #pragma mark Private Functions
21 - (int)bar {
22   return 2;
24 @end