[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CXX / dcl.decl / dcl.meaning / dcl.fct / p9-0x.cpp
blob719aeeddebcc02ddce7a3d3dfd2cece61e0d58f3
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
3 // FIXME: We should catch the case of tag with an incomplete type here (which
4 // will necessarily be ill-formed as a trailing return type for a function
5 // definition), and recover with a "type cannot be defined in a trailing return
6 // type" error.
7 auto j() -> enum { e3 }; // expected-error{{unnamed enumeration must be a definition}} expected-error {{expected a type}}