From 487079af3d6f39b379f52f7e0ea6edec63587e5b Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 27 Apr 2024 14:29:02 -0700 Subject: qbe: Add extra size for strict alignment with QBE instruction With upcoming VLA support, the size might not be constant. --- test/alignas-local-strict.c | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/alignas-local-strict.c (limited to 'test/alignas-local-strict.c') 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; +} -- cgit v1.2.3