summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-01-03 21:56:22 +0000
committerDouglas Gregor <dgregor@apple.com>2011-01-03 21:56:22 +0000
commit7ec835f35b80d6b61c63d0dd2a2b9cc2956c36bb (patch)
tree05b63808e7d7fc899775e413f655171992dfa16e /clang
parent544a3e932fcaeae2a82175ab2dfbb28f85e98588 (diff)
downloadbcm5719-llvm-7ec835f35b80d6b61c63d0dd2a2b9cc2956c36bb.tar.gz
bcm5719-llvm-7ec835f35b80d6b61c63d0dd2a2b9cc2956c36bb.zip
Add a test that is currently failing
llvm-svn: 122780
Diffstat (limited to 'clang')
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.variadic/metafunctions.cpp14
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 {
OpenPOWER on IntegriCloud