blob: 94ba0110b0b2e6e07ab2342c30fa75e2ac56be52 [file] [log] [blame]
/* PR tree-optimization/65984 */
/* { dg-do compile } */
/* { dg-options "-fnon-call-exceptions -fsanitize=bool,enum" } */
#ifndef __cplusplus
#define bool _Bool
#endif
enum E { E0, E1, E2 };
enum E e[2];
bool *b;
int
foo (int i)
{
return e[i];
}
int
bar (int i)
{
return b[i];
}