[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CXX / dcl.decl / dcl.meaning / dcl.fct.default / p6.cpp
blob9ab0b489a2c4584cabdbcf1005a2435c9b1a1fac
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 class C {
4 public:
5 void f(int i = 3); // expected-note{{here}}
6 void g(int i, int j = 99);
7 };
9 void C::f(int i = 3) { } // expected-error{{redefinition of default argument}}
11 void C::g(int i = 88, int j) { }
13 void test_C(C c) {
14 c.f();
15 c.g();
18 template<typename T>
19 struct X0 {
20 void f(int);
22 struct Inner {
23 void g(int);
27 // DR217
28 template<typename T>
29 void X0<T>::f(int = 17) { } // expected-error{{cannot be added}}
31 // DR217 + DR205 (reading tea leaves)
32 template<typename T>
33 void X0<T>::Inner::g(int = 17) { } // expected-error{{cannot be added}}