Browse Source

test: struct member initialization

legacy
Dnomd343 2 years ago
parent
commit
4439e4b85e
  1. 19
      src/analyse/analyse.cc

19
src/analyse/analyse.cc

@ -11,8 +11,27 @@ Core Analyse::new_core() {
); );
} }
class test_c {
public:
test_c() {
std::cout << "class init" << std::endl;
}
};
struct test_t {
uint64_t data;
test_c demo;
};
void Analyse::start_analyse(uint64_t code) { void Analyse::start_analyse(uint64_t code) {
auto t = test_t {
.data = 123,
// data: 123,
};
return;
auto core = new_core(); auto core = new_core();
cases.empty(); cases.empty();

Loading…
Cancel
Save