From 28961f9197c8c5356f29fffac0cc322788441759 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 27 Oct 2021 19:31:24 -0700 Subject: decl: Use strictest alignment when multiple specifiers are present This is specified by the last sentence in C11 6.7.5p6. --- test/alignas-multiple.c | 1 + test/alignas-multiple.qbe | 1 + 2 files changed, 2 insertions(+) create mode 100644 test/alignas-multiple.c create mode 100644 test/alignas-multiple.qbe (limited to 'test') 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 } -- cgit v1.2.3