Searched refs:test_bounds (Results 1 – 2 of 2) sorted by relevance
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | constant-expression-cxx14.cpp | 473 constexpr const char *test_bounds(const char *p, int o) { in test_bounds() function 476 static_assert(test_bounds("foo", 0)[0] == 'f', ""); 477 static_assert(test_bounds("foo", 3)[0] == 0, ""); 478 static_assert(test_bounds("foo", 4)[-3] == 'o', ""); 479 static_assert(test_bounds(&"foo"[4], -4)[0] == 'f', ""); 480 …static_assert(test_bounds("foo", 5) != 0, ""); // expected-error {{constant}} expected-note {{call… 481 …static_assert(test_bounds("foo", -1) != 0, ""); // expected-error {{constant}} expected-note {{cal… 482 …static_assert(test_bounds("foo", 1000) != 0, ""); // expected-error {{constant}} expected-note {{c…
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | error-type-safety.cpp | 35 void test_bounds() in test_bounds() function
|