variadic-templates.cpp revision 9370c8f4af43a98a6f16e65f5d88d58db846e374
1// RUN: %clang_cc1 -std=c++0x -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
2
3template<typename ...Types>
4int get_num_types(Types...) {
5  return sizeof...(Types);
6}
7
8// CHECK: define weak_odr i32 @_Z13get_num_typesIJifdEEispT_
9// CHECK: ret i32 3
10template int get_num_types(int, float, double);
11
12
13