Add a test that is currently failing

llvm-svn: 122780
This commit is contained in:
Douglas Gregor 2011-01-03 21:56:22 +00:00
parent 544a3e932f
commit 7ec835f35b
1 changed files with 14 additions and 0 deletions

View 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 {