Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/ubsan/pr65984.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* 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]; }