Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dconstant-expression-cxx11.cpp439 constexpr int strcmp_ce(const char *p, const char *q) { in strcmp_ce() function
440 return (!*p || *p != *q) ? *p - *q : strcmp_ce(p+1, q+1); in strcmp_ce()
477 static_assert(strcmp_ce("hello world", "hello world") == 0, "");
478 static_assert(strcmp_ce("hello world", "hello clang") > 0, "");
479 static_assert(strcmp_ce("constexpr", "test") < 0, "");
480 static_assert(strcmp_ce("", " ") < 0, "");
810 static_assert(strcmp_ce(&agg1.c, "hello") == 0, "");
854 return a.a == b.a && strcmp_ce(a.b, b.b) == 0; in operator ==()