From 4439e4b85eb6670cbe8d97e928b880cf23bf4cb8 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Fri, 13 Jan 2023 13:45:19 +0800 Subject: [PATCH] test: struct member initialization --- src/analyse/analyse.cc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/analyse/analyse.cc b/src/analyse/analyse.cc index f805669..801986a 100644 --- a/src/analyse/analyse.cc +++ b/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) { + auto t = test_t { + .data = 123, +// data: 123, + }; + + return; + auto core = new_core(); cases.empty();