From b1a906b970e1f55c1a3e6786cddb08719216ade3 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Sun, 7 Aug 2016 00:09:10 +0200 Subject: enums and ints are compatible --- tests/tcctest.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/tcctest.c b/tests/tcctest.c index 3885b54..a604c4a 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -590,6 +590,8 @@ enum test { void enum_test() { enum test b1; + /* The following should give no warning */ + int *p = &b1; printf("enum:\n%d %d %d %d %d %d\n", E0, E1, E2, E3, E4, E5); b1 = 1; -- cgit v1.3.1