CPP: Add a test of PartialDefinitions.

This commit is contained in:
Geoffrey White
2019-09-02 17:04:39 +01:00
parent 0f295c65f9
commit 8105d153b1
3 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
struct MyStruct
{
int x;
struct MySubStruct {
int z;
} y;
};
void test()
{
MyStruct s;
s.x = 1;
s.y.z = 1;
}