Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }