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