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-2.C
blob
068210d884c5d5608d26bb88eae931a70f0ef63a
1
// { dg-do run }
2
// { dg-options "-fsanitize=return -fno-sanitize-recover=return -Wno-return-type" }
3
4
struct S { S (); ~S (); };
5
6
S::S () {}
7
S::~S () {}
8
9
int
10
foo (int x)
11
{
12
S a;
13
{
14
S b;
15
if (x)
16
return 1;
17
}
18
}
19
20
int
21
main ()
22
{
23
foo (1);
24
foo (14);
25
}