summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/variadic-templates.cpp
blob: 4f3cf1fe9db65b0c74b9a728355d9e9e5500db60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -std=c++0x -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s

template<typename ...Types>
int get_num_types(Types...) {
  return sizeof...(Types);
}

// CHECK: define weak_odr i32 @_Z13get_num_typesIJifdEEiDpT_
// CHECK: ret i32 3
template int get_num_types(int, float, double);


OpenPOWER on IntegriCloud