repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
return-4.C
blob
d30eef8e31feff9b32943d2e776b9a53f91560c5
1
// PR c++/77722
2
// { dg-do run }
3
// { dg-options "-fsanitize=return -w" }
4
// { dg-shouldfail "ubsan" }
5
6
int
7
foo ()
8
{
9
}
10
11
int
12
main ()
13
{
14
foo ();
15
return 0;
16
}
17
18
// { dg-output "execution reached the end of a value-returning function without returning a value" }