blob: 8299ff203fc3f31c76ce2a8e42d41410cd437415 [file] [log] [blame]
/* { dg-do run } */
/* { dg-options "-fsanitize=unreachable" } */
/* { dg-skip-if "" { *-*-* } { "*" } { "-O2" } } */
/* { dg-shouldfail "ubsan" } */
int e;
int
main (void)
{
return e ? 0 : (__builtin_unreachable (), 1);
}
/* { dg-output "execution reached an unreachable program point" } */