| 1 |
// PR c++/105491 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
class Message { |
| 5 |
virtual int GetMetadata(); |
| 6 |
}; |
| 7 |
class ProtobufCFileOptions : Message { |
| 8 |
public: |
| 9 |
constexpr ProtobufCFileOptions(int); |
| 10 |
bool no_generate_; |
| 11 |
bool const_strings_; |
| 12 |
bool use_oneof_field_name_; |
| 13 |
bool gen_pack_helpers_; |
| 14 |
bool gen_init_helpers_; |
| 15 |
}; |
| 16 |
constexpr ProtobufCFileOptions::ProtobufCFileOptions(int) |
| 17 |
: no_generate_(), const_strings_(), use_oneof_field_name_(), |
| 18 |
gen_pack_helpers_(), gen_init_helpers_() {} |
| 19 |
struct ProtobufCFileOptionsDefaultTypeInternal { |
| 20 |
constexpr ProtobufCFileOptionsDefaultTypeInternal() : _instance({}) {} |
| 21 |
union { |
| 22 |
ProtobufCFileOptions _instance; |
| 23 |
}; |
| 24 |
} __constinit _ProtobufCFileOptions_default_instance_; |