From aefb830ede6316f5fcf4c3c48b79a661c66c9f2e Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Mon, 6 Dec 2021 13:58:50 -0800 Subject: decl: Fix typedefs with type qualifiers Previously, the qualifiers were saved, but accidentally ignored when the typedef was referenced. --- test/typedef-qual.c | 3 +++ test/typedef-qual.qbe | 1 + 2 files changed, 4 insertions(+) create mode 100644 test/typedef-qual.c create mode 100644 test/typedef-qual.qbe (limited to 'test') diff --git a/test/typedef-qual.c b/test/typedef-qual.c new file mode 100644 index 0000000..b027dab --- /dev/null +++ b/test/typedef-qual.c @@ -0,0 +1,3 @@ +typedef const int T; +const int x; +T x; diff --git a/test/typedef-qual.qbe b/test/typedef-qual.qbe new file mode 100644 index 0000000..7cf0e40 --- /dev/null +++ b/test/typedef-qual.qbe @@ -0,0 +1 @@ +export data $x = align 4 { z 4 } -- cgit v1.2.3