diff options
Diffstat (limited to 'usr.bin/indent/tests/struct.0')
-rw-r--r-- | usr.bin/indent/tests/struct.0 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/usr.bin/indent/tests/struct.0 b/usr.bin/indent/tests/struct.0 new file mode 100644 index 000000000000..784d387cc717 --- /dev/null +++ b/usr.bin/indent/tests/struct.0 @@ -0,0 +1,20 @@ + +int f(struct x *a); + +/* See r303485 */ +void +t(void) +{ + static const struct { + int a; + int b; + } c[] = { + { D, E }, + { F, G } + }; +} + +void u(struct x a) { + int b; + struct y c = (struct y *)&a; +} |