summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/trailing5.C
blob: b97d362be2fce821d2e16735bb168c4628fe550e (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/38798, DR 770
// { dg-options -std=c++0x }

struct A {};
auto foo() -> struct A {}

enum B {};
auto bar() -> enum B {}

auto baz() -> struct C {} {}	// { dg-error "" }