comparison gcc/testsuite/c-c++-common/ubsan/unreachable-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 1830386684a0
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* { dg-do run } */
2 /* { dg-options "-fsanitize=unreachable" } */
3 /* { dg-shouldfail "ubsan" } */
4
5 int
6 main (void)
7 {
8 __builtin_unreachable ();
9 }
10 /* { dg-output "execution reached a __builtin_unreachable\\(\\) call" } */