From cf41fccc0aee2c67fc47baffdc376a8122cdff5c Mon Sep 17 00:00:00 2001 From: mrdudz Date: Tue, 18 Aug 2020 00:40:29 +0200 Subject: [PATCH] added test related to issue #1143 --- test/err/bug1143err.c | 11 +++++++++++ test/val/bug1143warn.c | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100644 test/err/bug1143err.c create mode 100644 test/val/bug1143warn.c diff --git a/test/err/bug1143err.c b/test/err/bug1143err.c new file mode 100644 index 000000000..03a6e6d35 --- /dev/null +++ b/test/err/bug1143err.c @@ -0,0 +1,11 @@ + +/* bug #1143 - Multiple storage class specifiers in one declaration? */ + +static static void* y[1]; /* warning */ +extern static int a; /* error */ +extern typedef int A; /* error */ + +int main(void) +{ + return 0; +} diff --git a/test/val/bug1143warn.c b/test/val/bug1143warn.c new file mode 100644 index 000000000..9bbc8ea8b --- /dev/null +++ b/test/val/bug1143warn.c @@ -0,0 +1,9 @@ + +/* bug #1143 - Multiple storage class specifiers in one declaration? */ + +static static void* y[1]; /* warning */ + +int main(void) +{ + return 0; +}