aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-04-05 11:24:08 -0700
committerMichael Forney <mforney@mforney.org>2019-04-05 11:24:45 -0700
commit3411746ee9e93981ad0a9c28fc6e33d5d4c9bfd4 (patch)
treefd569e2f7fd6fa28d578ddf6a9f90253d2ecd659 /tests
parent6380b5cd6643bc0101e81c4da46d244466cda141 (diff)
downloadcproc-3411746ee9e93981ad0a9c28fc6e33d5d4c9bfd4.tar.xz
Fix _Alignas with type specifier
Diffstat (limited to 'tests')
-rw-r--r--tests/alignas.c1
-rw-r--r--tests/alignas.qbe1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/alignas.c b/tests/alignas.c
new file mode 100644
index 0000000..394045d
--- /dev/null
+++ b/tests/alignas.c
@@ -0,0 +1 @@
+_Alignas(int) char x[4];
diff --git a/tests/alignas.qbe b/tests/alignas.qbe
new file mode 100644
index 0000000..7cf0e40
--- /dev/null
+++ b/tests/alignas.qbe
@@ -0,0 +1 @@
+export data $x = align 4 { z 4 }