[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / variadic-templates.cpp
blob768fa113e1ae0339942801d30df8ae53b3960e4a
1 // RUN: %clang_cc1 -std=c++11 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
3 template<typename ...Types>
4 int get_num_types(Types...) {
5 return sizeof...(Types);
8 // CHECK-LABEL: define weak_odr noundef i32 @_Z13get_num_typesIJifdEEiDpT_
9 // CHECK: ret i32 3
10 template int get_num_types(int, float, double);
12 // PR10260 - argument packs that expand to nothing
13 namespace test1 {
14 template <class... T> void foo() {
15 int values[sizeof...(T)+1] = { T::value... };
16 // CHECK-LABEL: define linkonce_odr void @_ZN5test13fooIJEEEvv()
17 // CHECK: alloca [1 x i32], align 4
20 void test() {
21 foo<>();