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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
return-5.C
blob
2956c33a0945937f1180a1710586837a5eed3adb
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
int a = 5;
10
}
11
12
int
13
main ()
14
{
15
foo ();
16
return 0;
17
}
18
19
// { dg-output "execution reached the end of a value-returning function without returning a value" }