cgraph: A COMDAT decl always has non-zero address.
[gcc.git] / gcc / testsuite / obj-c++.dg / pragma-2.mm
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