Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
trailing5.C
blob: 32390d60897ed3ef22f0b04f9b844d77c0bf80f6 [
file
] [
log
] [
blame
]
// PR c++/38798, DR 770
// { dg-do compile { target c++11 } }
struct
A
{};
auto
foo
()
->
struct
A
{
return
A
();
}
enum
B
{};
auto
bar
()
->
enum
B
{
return
B
();
}
auto
baz
()
->
struct
C
{}
{}
// { dg-error "" }