Reid Kleckner | 0333dd9 | 2019-05-14 18:51:07 +0000 | [diff] [blame] | 1 | struct A { |
2 | public: | ||||
3 | int x; | ||||
4 | }; | ||||
5 | |||||
6 | struct B : A { | ||||
7 | int y; | ||||
8 | int foo(); | ||||
9 | }; | ||||
10 | |||||
11 | enum E { | ||||
12 | a = 0, | ||||
13 | b = 1 | ||||
14 | }; | ||||
15 | |||||
16 | //Friend import tests | ||||
17 | void f(); | ||||
18 | int g(int a); | ||||
19 | struct X; | ||||
20 | struct Y; | ||||
21 | |||||
22 | struct F1 { | ||||
23 | public: | ||||
24 | int x; | ||||
25 | friend struct X; | ||||
26 | friend int g(int); | ||||
27 | friend void f(); | ||||
28 | }; | ||||
29 | |||||
30 | struct F2 { | ||||
31 | public: | ||||
32 | int x; | ||||
33 | friend struct X; | ||||
34 | }; | ||||
35 | |||||
36 | struct F3 { | ||||
37 | public: | ||||
38 | int x; | ||||
39 | friend void f(); | ||||
40 | }; |