From bc9ee4205d5d697f0c03838e94db6911b33db18a Mon Sep 17 00:00:00 2001 From: Evan Haas Date: Mon, 22 Apr 2024 23:52:53 -0700 Subject: [PATCH] tests: enums are signed by default on windows --- test/cases/enum pointer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/cases/enum pointer.c b/test/cases/enum pointer.c index 148ed257..4b9a4e66 100644 --- a/test/cases/enum pointer.c +++ b/test/cases/enum pointer.c @@ -9,5 +9,10 @@ void foo(void) { enum E *p2 = &y; } +#if __WIN32__ +#define EXPECTED_ERRORS "enum pointer.c:9:18: warning: incompatible pointer types initializing 'enum E *' from incompatible type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign]" \ + +#else #define EXPECTED_ERRORS "enum pointer.c:8:18: warning: incompatible pointer types initializing 'enum E *' from incompatible type 'int *' [-Wincompatible-pointer-types]" \ +#endif