]> granicus.if.org Git - clang/commitdiff
Add a test that is currently failing
authorDouglas Gregor <dgregor@apple.com>
Mon, 3 Jan 2011 21:56:22 +0000 (21:56 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 3 Jan 2011 21:56:22 +0000 (21:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122780 91177308-0d34-0410-b5e6-96231b3b80d8

test/CXX/temp/temp.decls/temp.variadic/metafunctions.cpp

index c0a9eb6cd6e31720c543d752e3d74ea2a9be160d..69f6b46c2816ad65da294567047b5c313f7f9aec 100644 (file)
@@ -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 {