ptr WIP
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user