From 47ee543fe00783ddaae2b1aabe9606bfe4b33832 Mon Sep 17 00:00:00 2001 From: acqn Date: Sun, 21 Aug 2022 00:11:19 +0800 Subject: [PATCH] Added testcase for some part of PR #1833. --- test/val/pr1833.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/val/pr1833.c diff --git a/test/val/pr1833.c b/test/val/pr1833.c new file mode 100644 index 000000000..bdc820811 --- /dev/null +++ b/test/val/pr1833.c @@ -0,0 +1,13 @@ +/* Test for PR #1833 fixes */ + +#define char 1 + +#if char && !int && L'A' - L'B' == 'A' - 'B' && L'A' == 'A' +#else +#error +#endif + +int main(void) +{ + return 0; +}