summaryrefslogtreecommitdiff
path: root/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p9-0x.cpp
blob: 574a3e7a79341a5932ef7ca39d9f2275dd57b368 (about) (plain)
1
2
3
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s

auto j() -> enum { e3 }; // expected-error{{unnamed enumeration must be a definition}} expected-error {{requires a specifier or qualifier}} expected-error {{without trailing return type}}