[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / SemaCXX / PR9902.cpp
bloba34f99c12287b7521ae318a7f57db8658c165d7a
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2 // expected-no-diagnostics
4 template <class _Tp, class _Up, bool = false>
5 struct __allocator_traits_rebind
7 };
9 template <template <class, class...> class _Alloc, class _Tp, class ..._Args,
10 class _Up>
11 struct __allocator_traits_rebind<_Alloc<_Tp, _Args...>, _Up, false>
13 typedef _Alloc<_Up, _Args...> type;
16 template <class Alloc>
17 struct allocator_traits
19 template <class T> using rebind_alloc = typename __allocator_traits_rebind<Alloc, T>::type;
20 template <class T> using rebind_traits = allocator_traits<rebind_alloc<T>>;
23 template <class T>
24 struct allocator {};
26 int main()
28 allocator_traits<allocator<char>>::rebind_alloc<int> a;