blob: 2bd5503ecf3d50fb7d1c78e2f359eb0821b80ae3 [file] [log] [blame]
Reid Kleckner0333dd92019-05-14 18:51:07 +00001struct A {
2 public:
3 int x;
4};
5
6struct B : A {
7 float y;
8 float foo();
9};
10
11struct C {
12 C(int i = 10);
13 C(const C&);
14 C &operator=(C&);
15 ~C();
16};
17
18enum E {
19 b = 1
20};
21
22//Friend import tests
23void f();
24int g(int a);
25struct X;
26struct Y;
27
28struct F1 {
29public:
30 int x;
31 friend struct X;
32 friend int g(int);
33 friend void f();
34};
35
36struct F2 {
37public:
38 int x;
39 friend struct X;
40 friend void f();
41};
42
43struct F3 {
44public:
45 int x;
46 friend int g(int);
47 friend void f();
48};