[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / SemaCXX / pr30559.cpp
blobbcd2385fdd14c7d489d0dfa6b97d35a122bb8325
1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only %s
3 template < bool, class > struct A {};
4 template < class, int > void f () {};
5 template < class T, int >
6 decltype (f < T, 1 >) f (T t, typename A < t == 0, int >::type) {};
8 struct B {};
10 int main ()
12 f < B, 0 >;
13 return 0;
16 template <typename T>
17 auto foo(T x) -> decltype((x == nullptr), *x) {
18 return *x;
21 void bar() {
22 foo(new int);