aboutsummaryrefslogtreecommitdiff
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
commit69e5aed635946419d85a6be8639260e2eb476cb1 (patch)
tree6e733401e82efeb880d91560c1009c9084030fe6
parent7a21fd45d4f04643cbfb5df96a01f84bc6d3dd14 (diff)
Add a test that is currently failing
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122780 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CXX/temp/temp.decls/temp.variadic/metafunctions.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CXX/temp/temp.decls/temp.variadic/metafunctions.cpp b/test/CXX/temp/temp.decls/temp.variadic/metafunctions.cpp
index c0a9eb6cd6..69f6b46c28 100644
--- a/test/CXX/temp/temp.decls/temp.variadic/metafunctions.cpp
+++ b/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 {