| 1 | struct One { |
| 2 | int one = 142; |
| 3 | constexpr One() = default; |
| 4 | virtual ~One(); |
| 5 | }; |
| 6 | |
| 7 | struct Two : One { |
| 8 | int two = 242; |
| 9 | constexpr Two() = default; |
| 10 | ~Two() override; |
| 11 | }; |
| 12 | |
| 13 | namespace member { |
| 14 | struct One { |
| 15 | int member = 147; |
| 16 | constexpr One() = default; |
| 17 | virtual ~One(); |
| 18 | }; |
| 19 | |
| 20 | struct Two { |
| 21 | One one; |
| 22 | int member = 247; |
| 23 | constexpr Two() = default; |
| 24 | virtual ~Two(); |
| 25 | }; |
| 26 | } // namespace member |
| 27 | |
| 28 | namespace array { |
| 29 | struct One { |
| 30 | int member = 174; |
| 31 | constexpr One() = default; |
| 32 | virtual ~One(); |
| 33 | }; |
| 34 | |
| 35 | struct Two { |
| 36 | One one[3]; |
| 37 | int member = 274; |
| 38 | constexpr Two() = default; |
| 39 | virtual ~Two(); |
| 40 | }; |
| 41 | } // namespace array |
| 42 | |
| 43 | namespace result { |
| 44 | struct One { |
| 45 | int member; |
| 46 | One(int member); |
| 47 | virtual ~One(); |
| 48 | }; |
| 49 | |
| 50 | struct Two { |
| 51 | int member; |
| 52 | Two(int member); |
| 53 | One one() const; |
| 54 | virtual ~Two(); |
| 55 | }; |
| 56 | } // namespace result |
| 57 | |
| 58 | namespace func_shadow { |
| 59 | void One(int); |
| 60 | struct One { |
| 61 | int one = 142; |
| 62 | constexpr One() = default; |
| 63 | virtual ~One(); |
| 64 | }; |
| 65 | void One(float); |
| 66 | } // namespace func_shadow |
| 67 | |