From 46ebb15c76f56fd9482058432039c391ce2f0f7a Mon Sep 17 00:00:00 2001 From: mrdudz Date: Wed, 23 Sep 2020 23:57:25 +0200 Subject: [PATCH] test related to issue #1245 --- test/val/bug1245.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/val/bug1245.c diff --git a/test/val/bug1245.c b/test/val/bug1245.c new file mode 100644 index 000000000..2dda93790 --- /dev/null +++ b/test/val/bug1245.c @@ -0,0 +1,12 @@ +/* bug #1245 - ICE for enums with int initializers */ + +#include + +enum E { + X = 1000, +} e = 3; + +int main(void) +{ + return EXIT_SUCCESS; +}