[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Analysis / delayed-template-parsing-crash.cpp
blob6d189afb455a2af9fc3da281f88522aae1f8fb90
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core -std=c++11 -fdelayed-template-parsing -verify %s
2 // expected-no-diagnostics
4 template <class T> struct remove_reference {typedef T type;};
5 template <class T> struct remove_reference<T&> {typedef T type;};
6 template <class T> struct remove_reference<T&&> {typedef T type;};
8 template <typename T>
9 typename remove_reference<T>::type&& move(T&& arg) { // this used to crash
10 return static_cast<typename remove_reference<T>::type&&>(arg);