class1.cpp 479 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. struct A {
  2. public:
  3. int x;
  4. };
  5. struct B : A {
  6. float y;
  7. float foo();
  8. };
  9. struct C {
  10. C(int i = 10);
  11. C(const C&);
  12. C &operator=(C&);
  13. ~C();
  14. };
  15. enum E {
  16. b = 1
  17. };
  18. //Friend import tests
  19. void f();
  20. int g(int a);
  21. struct X;
  22. struct Y;
  23. struct F1 {
  24. public:
  25. int x;
  26. friend struct X;
  27. friend int g(int);
  28. friend void f();
  29. };
  30. struct F2 {
  31. public:
  32. int x;
  33. friend struct X;
  34. friend void f();
  35. };
  36. struct F3 {
  37. public:
  38. int x;
  39. friend int g(int);
  40. friend void f();
  41. };