Douglas Gregor | 9370c8f | 2011-01-12 22:11:34 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -std=c++0x -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s |
2 | |||||
3 | template<typename ...Types> | ||||
4 | int get_num_types(Types...) { | ||||
5 | return sizeof...(Types); | ||||
6 | } | ||||
7 | |||||
Douglas Gregor | dce7397 | 2011-01-13 18:03:24 +0000 | [diff] [blame] | 8 | // CHECK: define weak_odr i32 @_Z13get_num_typesIJifdEEiDpT_ |
Douglas Gregor | 9370c8f | 2011-01-12 22:11:34 +0000 | [diff] [blame] | 9 | // CHECK: ret i32 3 |
10 | template int get_num_types(int, float, double); | ||||
11 | |||||
12 |