[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / SemaCXX / windows-arm-valist.cpp
blobd12be65e4f9f094fb696bdd4acd10f1751ee86ba
1 // RUN: %clang_cc1 -triple thumbv7--windows-msvc -std=c++11 -verify -fsyntax-only %s
2 // expected-no-diagnostics
4 #include <stdarg.h>
6 template <typename lhs_, typename rhs_>
7 struct is_same { enum { value = 0 }; };
9 template <typename type_>
10 struct is_same<type_, type_> { enum { value = 1 }; };
12 void check() {
13 va_list va;
14 char *cp;
15 static_assert(is_same<decltype(va), decltype(cp)>::value,
16 "type mismatch for va_list");