aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2022-03-22 01:06:47 -0700
committerMichael Forney <mforney@mforney.org>2022-03-22 01:58:31 -0700
commit9b786ac07e130d779626e02486bb9988ef97a0ce (patch)
treefef5865e5f8bebb443bc77e3a87c87ffe912c0bb /test
parent7ce1a01225a33dd9ce4b1a3b522848be73b5592d (diff)
Add test for typeof on expression with array type
Diffstat (limited to 'test')
-rw-r--r--test/typeof-array.c2
-rw-r--r--test/typeof-array.qbe2
2 files changed, 4 insertions, 0 deletions
diff --git a/test/typeof-array.c b/test/typeof-array.c
new file mode 100644
index 0000000..07ac863
--- /dev/null
+++ b/test/typeof-array.c
@@ -0,0 +1,2 @@
+int x[5];
+__typeof__(x) y;
diff --git a/test/typeof-array.qbe b/test/typeof-array.qbe
new file mode 100644
index 0000000..52fcc79
--- /dev/null
+++ b/test/typeof-array.qbe
@@ -0,0 +1,2 @@
+export data $x = align 4 { z 20 }
+export data $y = align 4 { z 20 }