1 /* { dg-do compile } */ 2 /* { dg-options "-fsanitize=signed-integer-overflow" } */ 3 4 typedef enum E { A = -1 } e; 5 int foo(void)6 foo (void) 7 { 8 e e = A; 9 return e + 1; 10 } 11