brintos

brintos / llvm-project-archived public Read only

0
0
Text · 340 B · 428acc3 Raw
27 lines · cpp
1class C1 {2public:3  C1();4  ~C1();5  C1 *method_1() {6    return this;7  }8  C1 method_2() {9    return C1();10  }11  void method_3() {12    const C1 &ref = C1();13  }14};15 16class C11 : public C1 {17};18 19class C2 {20private:21  int x;22  friend class C3;23public:24  static_assert(sizeof(x) == sizeof(int), "Error");25  typedef class C2::C2 InjType;26};27