From 9b786ac07e130d779626e02486bb9988ef97a0ce Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Tue, 22 Mar 2022 01:06:47 -0700 Subject: Add test for typeof on expression with array type --- test/typeof-array.c | 2 ++ test/typeof-array.qbe | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 test/typeof-array.c create mode 100644 test/typeof-array.qbe (limited to 'test') 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 } -- cgit v1.2.3