diff options
author | Michael Forney <mforney@mforney.org> | 2021-10-27 19:31:24 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2021-12-06 13:51:58 -0800 |
commit | 28961f9197c8c5356f29fffac0cc322788441759 (patch) | |
tree | 6be913ce424d5de5e117f4791fee22b5d9db2bd9 /test | |
parent | 8e39120d8ef8a5b8267771d2bc037dd1a95850f8 (diff) |
decl: Use strictest alignment when multiple specifiers are present
This is specified by the last sentence in C11 6.7.5p6.
Diffstat (limited to 'test')
-rw-r--r-- | test/alignas-multiple.c | 1 | ||||
-rw-r--r-- | test/alignas-multiple.qbe | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/test/alignas-multiple.c b/test/alignas-multiple.c new file mode 100644 index 0000000..7fc2199 --- /dev/null +++ b/test/alignas-multiple.c @@ -0,0 +1 @@ +_Alignas(8) _Alignas(4) char x; diff --git a/test/alignas-multiple.qbe b/test/alignas-multiple.qbe new file mode 100644 index 0000000..fd85074 --- /dev/null +++ b/test/alignas-multiple.qbe @@ -0,0 +1 @@ +export data $x = align 8 { z 1 } |