diff options
| author | Michael Matz <matz@suse.de> | 2016-08-07 00:09:10 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2016-12-15 17:47:10 +0100 |
| commit | b1a906b970e1f55c1a3e6786cddb08719216ade3 (patch) | |
| tree | c83b08e02bf0ff39e12d3fe500ebea69539d27dd /tests/tcctest.c | |
| parent | c0368604e196d53b281cd2aceb140b5facd36ed7 (diff) | |
| download | tinycc-b1a906b970e1f55c1a3e6786cddb08719216ade3.tar.gz tinycc-b1a906b970e1f55c1a3e6786cddb08719216ade3.tar.bz2 | |
enums and ints are compatible
Diffstat (limited to 'tests/tcctest.c')
| -rw-r--r-- | tests/tcctest.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
