This commit is contained in:
T0b1
2023-06-25 02:57:11 +02:00
parent 28dbf374e8
commit 10826ff2d5
9 changed files with 271 additions and 16 deletions

BIN
tmp/main

Binary file not shown.

View File

@@ -16,6 +16,7 @@ namespace test {
uint32_t test_bits : 20;
uint32_t test_bits2: 12;
MyEnum enum_val;
std::string* ptr = nullptr;
};
}
@@ -26,7 +27,7 @@ void helper_fn() {
unsigned int y = 30;
sleep(tmp.data);
{
test::MyType tmp = test::MyType{2};
test::MyType tmp = test::MyType{.data = 2, .ptr = &test};
sleep(tmp.data);
}
}