diff options
Diffstat (limited to 'clang')
-rw-r--r-- | clang/test/CXX/temp/temp.decls/temp.variadic/metafunctions.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CXX/temp/temp.decls/temp.variadic/metafunctions.cpp b/clang/test/CXX/temp/temp.decls/temp.variadic/metafunctions.cpp index c0a9eb6cd6e..69f6b46c281 100644 --- a/clang/test/CXX/temp/temp.decls/temp.variadic/metafunctions.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.variadic/metafunctions.cpp @@ -105,6 +105,20 @@ namespace Math { }; int check3[sum<1, 2, 3, 4, 5>::value == 15? 1 : -1]; + +#if 0 + // FIXME: Instantiation of this fails. + template<int ... Values> + struct lazy_sum { + int operator()() { + return sum<Values...>::value; + } + }; + + void f() { + lazy_sum<1, 2, 3, 4, 5>()(); + } +#endif } namespace Indices { |