Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
returning-a-value-1.C
blob: ee53900a7fdd93db811ed98d168effecd1db47d1 [
file
] [
log
] [
blame
]
int
foo
();
struct
A
{
A
()
{
return
foo
();
}
// { dg-error "19:returning a value" }
~
A
()
{
return
foo
();
}
// { dg-error "20:returning a value" }
void
bar
()
{
return
foo
();
}
// { dg-error "26:return-statement with a value" }
};