Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
noreturn-6.C
blob: fdbc42516a13e63f10aa0ecb12bee0a3fce1005a [
file
] [
log
] [
blame
]
// PR c++/30988
// { dg-do compile }
// { dg-options "-O2 -Wall" }
void
f
(
const
char
*);
template
<
typename
T
>
struct
A
{
int
g
()
{
f
(
__FUNCTION__
);
}
// { dg-warning "no return statement in function returning non-void" }
};