summaryrefslogtreecommitdiff
path: root/src/tools/pg_bsd_indent/tests/struct.0
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2023-02-12 11:59:18 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2023-02-12 11:59:18 -0500
commit4e831f4cee140b004fae44d528d47c284d8ac9eb (patch)
tree8dcba12f6b1c72ee80aad61263c0601676d7559d /src/tools/pg_bsd_indent/tests/struct.0
parentdab07e8c6896df3129bc153ead1f107e695652ee (diff)
downloadpostgresql-4e831f4cee140b004fae44d528d47c284d8ac9eb.tar.gz
Import pg_bsd_indent sources.
This brings in an exact copy of the pg_bsd_indent repo as of commit d301442799cea44e5ccb04331afc537764ec77c5 (2020-12-28). Discussion: https://postgr.es/m/3935719.1675967430@sss.pgh.pa.us Discussion: https://postgr.es/m/20200812223409.6di3y2qsnvynao7a@alap3.anarazel.de
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;
+}