Home
last modified time | relevance | path

Searched refs:LastNonzero (Results 1 – 1 of 1) sorted by relevance

/minix/external/bsd/llvm/dist/clang/test/SemaCXX/
H A Dconstant-expression-cxx11.cpp1423 constexpr auto LastNonzero(Iter p, Iter q) -> decltype(+*p) { in LastNonzero() function
1424 return p != q ? (LastNonzero(p+1, q) ?: *p) : 0; // expected-warning {{GNU}} in LastNonzero()
1428 static_assert(LastNonzero(begin(arr1), end(arr1)) == 4, "");
1431 static_assert(LastNonzero(begin(arr2), end(arr2)) == 5, "");
1442 static_assert(LastNonzero(begin(arr3), end(arr3)) == 2, "");