Skip to content

Commit

Permalink
tests: enums are signed by default on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaas committed Apr 23, 2024
1 parent cc4497e commit bc9ee42
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/cases/enum pointer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bc9ee42

Please sign in to comment.