From 056de5d46edfd4f5882217248c49fa64a9ecff48 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Tue, 16 Apr 2019 16:47:53 -0700 Subject: Use undecayed type in __typeof__ --- test/typeof-decay.c | 2 ++ test/typeof-decay.qbe | 1 + 2 files changed, 3 insertions(+) create mode 100644 test/typeof-decay.c create mode 100644 test/typeof-decay.qbe (limited to 'test') diff --git a/test/typeof-decay.c b/test/typeof-decay.c new file mode 100644 index 0000000..1e38d82 --- /dev/null +++ b/test/typeof-decay.c @@ -0,0 +1,2 @@ +char a[4]; +__typeof__(a) a; diff --git a/test/typeof-decay.qbe b/test/typeof-decay.qbe new file mode 100644 index 0000000..8992e9b --- /dev/null +++ b/test/typeof-decay.qbe @@ -0,0 +1 @@ +export data $a = align 1 { z 4 } -- cgit v1.2.3