summaryrefslogtreecommitdiff
path: root/src/tools/pg_bsd_indent/tests/struct.0
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/pg_bsd_indent/tests/struct.0')
-rw-r--r--src/tools/pg_bsd_indent/tests/struct.021
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;
+}