aboutsummaryrefslogtreecommitdiff
path: root/test/static-assert-struct.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-04-11 17:44:35 -0700
committerMichael Forney <mforney@mforney.org>2021-04-11 17:44:35 -0700
commitf701c0c645abfd94c3ccedf38cbb0fe9f1414141 (patch)
tree375eb5f227cf521e52287f855259b623a7c1b9e1 /test/static-assert-struct.c
parentebdae640721cd7be00db01b6e5d0793b46926f3b (diff)
decl: Allow _Static_assert in struct declaration
Diffstat (limited to 'test/static-assert-struct.c')
-rw-r--r--test/static-assert-struct.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/static-assert-struct.c b/test/static-assert-struct.c
new file mode 100644
index 0000000..3b9f97d
--- /dev/null
+++ b/test/static-assert-struct.c
@@ -0,0 +1,4 @@
+struct s {
+ int x;
+ _Static_assert(1, "");
+};