diff options
Diffstat (limited to 'validation')
| -rw-r--r-- | validation/inline_compound_literals.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/validation/inline_compound_literals.c b/validation/inline_compound_literals.c new file mode 100644 index 00000000..649d42ab --- /dev/null +++ b/validation/inline_compound_literals.c @@ -0,0 +1,18 @@ +struct foo { + int x; +}; + +static inline void baz(void) +{ + (struct foo) { .x = 0 }; +} + +static void barf(void) +{ + baz(); +} + +static void foo(void) +{ + baz(); +} |
