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