Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wreturn-type-5.C
blob: 8a19d646fa2db7cbeeb4ef2faf28f3cf2c20a084 [
file
] [
log
] [
blame
]
// PR c++/36254
// { dg-do compile }
// { dg-options "-Wreturn-type" }
int
i
,
j
,
k
;
struct
X
{
X
();
~
X
();
};
bool
foo
()
{
X x
;
if
(
i
&&
j
)
{
if
(
k
)
return
true
;
else
return
false
;
}
else
return
false
;
}