Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/ubsan/pr63839.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 1830386684a0 |
line wrap: on
line source
/* { dg-do run } */ /* { dg-options "-fsanitize=unreachable" } */ /* { dg-skip-if "" { *-*-* } { "*" } { "-O2" } } */ /* { dg-shouldfail "ubsan" } */ static void __attribute__ ((noreturn)) bar () { } /* { dg-warning "function does return" } */ void foo () { bar (); } int main (void) { foo (); } /* { dg-output "execution reached a __builtin_unreachable\\(\\) call" } */