[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CXX / dcl.decl / dcl.meaning / dcl.fct / p8.cpp
blob0454412229fad785895361ac85907a0ed53f7849
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 struct A { };
4 A::A (enum { e1 }) {} // expected-error{{cannot be defined in a parameter}}
5 void A::f(enum { e2 }) {} // expected-error{{cannot be defined in a parameter}}
7 enum { e3 } A::g() { } // expected-error{{cannot be defined in the result type}} \
8 // expected-error{{out-of-line definition}}