1/* PR tree-optimization/65984 */ 2/* { dg-do compile } */ 3/* { dg-options "-fnon-call-exceptions -fsanitize=bool,enum" } */ 4 5#ifndef __cplusplus 6#define bool _Bool 7#endif 8 9enum E { E0, E1, E2 }; 10enum E e[2]; 11bool *b; 12 13int 14foo (int i) 15{ 16 return e[i]; 17} 18 19int 20bar (int i) 21{ 22 return b[i]; 23} 24