test related to issue #1244

This commit is contained in:
mrdudz 2020-09-23 23:57:36 +02:00
parent 46ebb15c76
commit b3491e3d9a
1 changed files with 18 additions and 0 deletions

18
test/val/bug1244.c Normal file
View File

@ -0,0 +1,18 @@
/* bug #1244 - ICE for enum bit-fields */
#include <stdlib.h>
enum E {
L = 65535L /* or U = 65535U */
};
struct S {
enum E a : 16;
} s;
int main(void)
{
return EXIT_SUCCESS;
}