brintos

brintos / llvm-project-archived public Read only

0
0
Text · 369 B · 6fe38b9 Raw
41 lines · cpp
1struct A {2  public:3    int x;4};5 6struct B : A {7  int y;8  int foo();9};10 11enum E {12  a = 0,13  b = 114};15 16//Friend import tests17void f();18int g(int a);19struct X;20struct Y;21 22struct F1 {23public:24  int x;25  friend struct X;26  friend int g(int);27  friend void f();28};29 30struct F2 {31public:32  int x;33  friend struct X;34};35 36struct F3 {37public:38  int x;39  friend void f();40};41