Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wreturn-5.C
blob: 543e33e905d9016d062ae34f96b7045b6e83d95b [
file
] [
log
] [
blame
]
// PR C++/66590
// { dg-do compile }
// { dg-options "-Wall" }
struct
A
{
~
A
();};
int
f
(
int
x
)
{
A a
;
switch
(
x
)
{
case
1
:
{
A tmp
;
return
1
;
}
break
;
default
:
return
0
;
}
}
// { dg-bogus "control reaches end of non-void function" }