blob: 336240c96cba6cb614911bf4ab65bb80160a5173 (
plain)
1
2
3
4
5
6
7
8
9
10
|
/* { dg-do run } */
/* { dg-options "-fsanitize=unreachable" } */
/* { dg-shouldfail "ubsan" } */
int
main (void)
{
__builtin_unreachable ();
}
/* { dg-output "execution reached a __builtin_unreachable\\(\\) call" } */
|