forked from OSchip/llvm-project
parent
544a3e932f
commit
7ec835f35b
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue