diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-01-12 22:11:34 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-01-12 22:11:34 +0000 |
commit | 9370c8f4af43a98a6f16e65f5d88d58db846e374 (patch) | |
tree | a0d157cc29c5314243f6e0a1ea3e4ebf40de01d5 /test/CodeGenCXX/variadic-templates.cpp | |
parent | ac6c09917eaf32a35d2c7c95856864d877ef1963 (diff) |
Add IR generation support for SizeOfPackExpr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123332 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/variadic-templates.cpp')
-rw-r--r-- | test/CodeGenCXX/variadic-templates.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGenCXX/variadic-templates.cpp b/test/CodeGenCXX/variadic-templates.cpp new file mode 100644 index 0000000000..5faeba4057 --- /dev/null +++ b/test/CodeGenCXX/variadic-templates.cpp @@ -0,0 +1,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_typesIJifdEEispT_ +// CHECK: ret i32 3 +template int get_num_types(int, float, double); + + |