aboutsummaryrefslogtreecommitdiff
path: root/test/alignas-0.qbe
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-04-11 17:35:43 -0700
committerMichael Forney <mforney@mforney.org>2021-04-11 17:37:33 -0700
commitebdae640721cd7be00db01b6e5d0793b46926f3b (patch)
treef0bc0c7479692268fae90ccff0c4d797a54ca31e /test/alignas-0.qbe
parent0c2e1bf9b32bd429bd01f0baec6893afd372d354 (diff)
decl: Allow _Alignas(0)
C11 6.7.5p6 says "An alignment specification of zero has no effect".
Diffstat (limited to 'test/alignas-0.qbe')
-rw-r--r--test/alignas-0.qbe3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/alignas-0.qbe b/test/alignas-0.qbe
new file mode 100644
index 0000000..849fb58
--- /dev/null
+++ b/test/alignas-0.qbe
@@ -0,0 +1,3 @@
+export data $x = align 4 { z 4 }
+export data $y = align 8 { z 4 }
+export data $z = align 16 { z 4 }