aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/ubsan/unreachable-1.c
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" } */