blob: d30eef8e31feff9b32943d2e776b9a53f91560c5 [file] [log] [blame]
// PR c++/77722
// { dg-do run }
// { dg-options "-fsanitize=return -w" }
// { dg-shouldfail "ubsan" }
int
foo ()
{
}
int
main ()
{
foo ();
return 0;
}
// { dg-output "execution reached the end of a value-returning function without returning a value" }