diff options
author | Michael Forney <mforney@mforney.org> | 2024-04-27 14:29:02 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2024-04-27 14:29:02 -0700 |
commit | 487079af3d6f39b379f52f7e0ea6edec63587e5b (patch) | |
tree | 7c265c8a5097032794479435290e7b1e0975d243 /test/alignas-local-strict.c | |
parent | 52c17530f2e2dbc61a3bf1d4950c8b9eaeab86de (diff) |
qbe: Add extra size for strict alignment with QBE instruction
With upcoming VLA support, the size might not be constant.
Diffstat (limited to 'test/alignas-local-strict.c')
-rw-r--r-- | test/alignas-local-strict.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/alignas-local-strict.c b/test/alignas-local-strict.c new file mode 100644 index 0000000..e390713 --- /dev/null +++ b/test/alignas-local-strict.c @@ -0,0 +1,4 @@ +int main(void) { + alignas(32) char x; + return (unsigned long)&x % 32; +} |