PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / ubsan / return-4.C
blobd30eef8e31feff9b32943d2e776b9a53f91560c5
1 // PR c++/77722
2 // { dg-do run }
3 // { dg-options "-fsanitize=return -w" }
4 // { dg-shouldfail "ubsan" }
6 int
7 foo ()
11 int
12 main ()
14   foo ();
15   return 0;
18 // { dg-output "execution reached the end of a value-returning function without returning a value" }