diff options
Diffstat (limited to 'src/tools/pg_bsd_indent/tests/struct.0')
-rw-r--r-- | src/tools/pg_bsd_indent/tests/struct.0 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tools/pg_bsd_indent/tests/struct.0 b/src/tools/pg_bsd_indent/tests/struct.0 new file mode 100644 index 0000000000..83142bfb19 --- /dev/null +++ b/src/tools/pg_bsd_indent/tests/struct.0 @@ -0,0 +1,21 @@ +/* $FreeBSD$ */ + +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; +} |