* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / ubsan / return-6.C
blob0c1e7921c81176f8357d1f80337a82be23188297
1 // PR c++/77722
2 // { dg-do run }
3 // { dg-options "-fsanitize=return -w" }
4 // { dg-shouldfail "ubsan" }
6 int
7 foo ()
9   int a = 5;
10   int b = 5;
13 int
14 main ()
16   foo ();
17   return 0;
20 // { dg-output "execution reached the end of a value-returning function without returning a value" }