Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
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
;
}