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