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