brintos

brintos / llvm-project-archived public Read only

0
0
Text · 479 B · 2bd5503 Raw
49 lines · cpp
1struct 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 = 120};21 22//Friend import tests23void 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};49