test related to issue #1244
This commit is contained in:
parent
46ebb15c76
commit
b3491e3d9a
1 changed files with 18 additions and 0 deletions
18
test/val/bug1244.c
Normal file
18
test/val/bug1244.c
Normal 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;
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue