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