From e56115524c0d242418ae2b1175b2e05756a1d425 Mon Sep 17 00:00:00 2001 From: Andre Maroneze <andre.maroneze@cea.fr> Date: Tue, 23 Jan 2024 15:07:32 +0100 Subject: [PATCH] add test case for struct cast with attribute --- tests/syntax/cast-struct-function-attr.i | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/syntax/cast-struct-function-attr.i diff --git a/tests/syntax/cast-struct-function-attr.i b/tests/syntax/cast-struct-function-attr.i new file mode 100644 index 00000000000..778b8ccd6cc --- /dev/null +++ b/tests/syntax/cast-struct-function-attr.i @@ -0,0 +1,8 @@ +struct t { + int a; +}; +typedef struct t t; +__attribute__((visibility("hidden"))) t f() { + t res = {0}; + return res; +} -- GitLab