Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wreturn-type-7.C
blob: 62e34a519590408276d8c8b0cbd5922e8227ed56 [
file
] [
log
] [
blame
]
// PR c++/20681
// { dg-options -Wreturn-type }
struct
a
{~
a
();
a
();};
int
GetMetaCombination
(
int
a2
)
{
a bi
;
switch
(
a2
)
{
case
1
:
return
18
;
break
;
//removing this works around the warning
default
:
return
0
;
}
}