diff options
author | Michael Forney <mforney@mforney.org> | 2021-04-11 17:35:43 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2021-04-11 17:37:33 -0700 |
commit | ebdae640721cd7be00db01b6e5d0793b46926f3b (patch) | |
tree | f0bc0c7479692268fae90ccff0c4d797a54ca31e /test/alignas-0.qbe | |
parent | 0c2e1bf9b32bd429bd01f0baec6893afd372d354 (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.qbe | 3 |
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 } |