diff options
author | Matthew Sotoudeh <matthew@masot.net> | 2023-07-25 14:58:33 -0700 |
---|---|---|
committer | Matthew Sotoudeh <matthew@masot.net> | 2023-07-25 14:58:33 -0700 |
commit | 1d943da0cf9154e7ce78ce867cdbb91531c5d78e (patch) | |
tree | 40c5c6c3ba7fafa6567aa5b5aa216caecf3935fc /tests/unnamed_fields.c |
initial dietc commit
Diffstat (limited to 'tests/unnamed_fields.c')
-rw-r--r-- | tests/unnamed_fields.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/unnamed_fields.c b/tests/unnamed_fields.c new file mode 100644 index 0000000..d259d44 --- /dev/null +++ b/tests/unnamed_fields.c @@ -0,0 +1,13 @@ +struct xyz { + int z; + struct { + int x; + int y; + }; +}; + +int main() { + struct xyz abc; + abc.x = 5; + return abc.x; +} |