Searched refs:carr (Results 1 – 5 of 5) sorted by relevance
| /llvm-project-15.0.7/libcxx/test/std/containers/views/views.span/span.cons/ |
| H A D | array.fail.cpp | 32 const int carr[] = {4,5,6}; variable 51 …std::span< int> s1{ carr}; // expected-error {{no matching constructor for initia… in main() 56 …std::span< volatile int> s6{ carr}; // expected-error {{no matching constructor for initia… in main() 62 …std::span< int,3> s1{ carr}; // expected-error {{no matching constructor for initia… in main() 67 …std::span< volatile int,3> s6{ carr}; // expected-error {{no matching constructor for initia… in main()
|
| H A D | copy.pass.cpp | 46 constexpr int carr[] = {1,2,3}; in main() local 50 static_assert(doCopy(std::span<const int> (&carr[0], 1)), ""); in main() 51 static_assert(doCopy(std::span<const int,1>(&carr[0], 1)), ""); in main() 52 static_assert(doCopy(std::span<const int> (&carr[0], 2)), ""); in main() 53 static_assert(doCopy(std::span<const int,2>(&carr[0], 2)), ""); in main()
|
| H A D | array.pass.cpp | 31 const int carr[] = {4,5,6}; in checkCV() local 38 std::span<const int> s2{ carr}; // a span<const int> pointing at const int. in checkCV() 47 std::span<const int,3> s2{ carr}; // a span<const int> pointing at const int. in checkCV() 60 std::span<const volatile int> s5{carr}; // a span<const volatile int> pointing at const int. in checkCV() 71 std::span<const volatile int,3> s5{carr}; // a span<const volatile int> pointing at const int. in checkCV()
|
| /llvm-project-15.0.7/lldb/test/API/lang/cpp/structured-binding/ |
| H A D | main.cpp | 37 char carr[]{'a', 'b', 'c'}; in main() local 41 auto [carr_copy1, carr_copy2, carr_copy3] = carr; in main() 45 auto &[carr_ref1, carr_ref2, carr_ref3] = carr; in main() 49 auto &&[carr_rref1, carr_rref2, carr_rref3] = carr; in main()
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | constant-expression-cxx11.cpp | 676 extern const int carr[]; // expected-note {{here}} 677 constexpr int n = carr[0]; // expected-error {{constant}} expected-note {{non-constexpr variable}}
|