| /llvm-project/libcxx/test/std/algorithms/algorithms.results/ |
| H A D | no_unique_address.compile.pass.cpp | 23 struct Empty {}; struct 26 static_assert(sizeof(std::ranges::in_fun_result<Empty, int>) == sizeof(int)); 27 static_assert(sizeof(std::ranges::in_fun_result<int, Empty>) == sizeof(int)); 28 static_assert(sizeof(std::ranges::in_fun_result<Empty, Empty>) == 2); 30 static_assert(sizeof(std::ranges::in_in_result<Empty, int>) == sizeof(int)); 31 static_assert(sizeof(std::ranges::in_in_result<int, Empty>) == sizeof(int)); 32 static_assert(sizeof(std::ranges::in_in_result<Empty, Empty>) == 2); 34 static_assert(sizeof(std::ranges::in_out_result<Empty, int>) == sizeof(int)); 35 static_assert(sizeof(std::ranges::in_out_result<int, Empty>) == sizeof(int)); 36 static_assert(sizeof(std::ranges::in_out_result<Empty, Empty2>) == sizeof(char)); [all …]
|
| /llvm-project/libcxx/test/std/ranges/range.factories/range.repeat.view/ |
| H A D | ctor.value.bound.pass.cpp | 21 struct Empty {}; struct 24 static_assert(std::is_constructible_v<std::ranges::repeat_view<Empty>, const Empty&>); 25 static_assert(std::is_constructible_v<std::ranges::repeat_view<Empty>, Empty&&>); 26 static_assert(std::is_constructible_v<std::ranges::repeat_view<Empty, int>, const Empty&>); 27 static_assert(std::is_constructible_v<std::ranges::repeat_view<Empty, int>, Empty&&>); 29 static_assert(!std::is_convertible_v<const Empty&, std::ranges::repeat_view<Empty>>); 30 static_assert(!std::is_convertible_v<Empty&&, std::ranges::repeat_view<Empty>>); 31 static_assert(!std::is_convertible_v<const Empty&, std::ranges::repeat_view<Empty, int>>); 32 static_assert(!std::is_convertible_v<Empty&&, std::ranges::repeat_view<Empty, int>>); 40 std::ranges::repeat_view<Empty> rv(Empty{}); in test() [all …]
|
| H A D | ctad.compile.pass.cpp | 18 struct Empty {}; struct 21 …c_assert(std::same_as<decltype(std::ranges::repeat_view(Empty())), std::ranges::repeat_view<Empty>… 22 …same_as<decltype(std::ranges::repeat_view(std::declval<Empty&>())), std::ranges::repeat_view<Empty… 23 …ame_as<decltype(std::ranges::repeat_view(std::declval<Empty&&>())), std::ranges::repeat_view<Empty…
|
| /llvm-project/clang/test/SemaCXX/ |
| H A D | empty-class-layout.cpp | 24 struct Empty { Empty(); }; struct 26 struct I : Empty { 27 Empty e; 31 struct J : Empty { 32 Empty e[2]; 36 template<int N> struct Derived : Empty, Derived<N - 1> { 38 template<> struct Derived<0> : Empty { }; 41 Empty e; 46 Empty e[2]; 51 Empty e; [all …]
|
| H A D | attr-exclude_from_explicit_instantiation.extern_declaration.cpp | 57 struct Empty { }; struct 58 extern template struct Foo<Empty>; 61 Foo<Empty> foo; in main() 64 Foo<Empty>::static_member_function1(); // expected-note{{in instantiation of}} in main() 65 Foo<Empty>::static_member_function2(); // expected-note{{in instantiation of}} in main() 67 Foo<Empty>::member_class1::static_member_function(); // expected-note{{in instantiation of}} in main() 68 Foo<Empty>::member_class2::static_member_function(); // expected-note{{in instantiation of}} in main()
|
| /llvm-project/libcxx/test/std/concepts/concepts.lang/concept.constructible/ |
| H A D | constructible_from.compile.pass.cpp | 22 struct Empty {}; 97 test<void (Empty::*)(const int&)>(); in test() 98 test<void (Empty::*)(const int&), std::nullptr_t>(); in test() 99 test<void (Empty::*)(const int&) const>(); in test() 100 test<void (Empty::*)(const int&) const, void (Empty::*)(const int&)>(); in test() 101 test<void (Empty::*)(const int&) volatile>(); in test() 102 test<void (Empty::*)(const int&) volatile, in test() 103 void (Empty::*)(const int&) const volatile>(); in test() 104 test<void (Empty in test() 21 struct Empty {}; global() struct [all...] |
| /llvm-project/clang/test/CodeGenCXX/ |
| H A D | no-unique-address-3.cpp | 20 class Empty {}; class 24 class Second : Empty { 30 class Foo : Empty { 40 class SecondEmpty: Empty { 53 class Bar : Empty { 70 class IntFieldClass : Empty { 90 class UnionClass : Empty { 111 class EnumClass : Empty { 129 class NoBaseField : Empty { 130 [[no_unique_address]] Empty A; [all …]
|
| H A D | empty-classes.cpp | 5 struct Empty { }; struct 13 struct B : A, Empty { 14 B() : A(), Empty() { } in B() 17 struct C : A, Empty { 18 C() : A(), Empty() { } in C() 19 C(const C& other) : A(0x12345678), Empty(other) { } in C() 22 struct D : A, Empty { 25 Empty::operator=(other); in operator =()
|
| H A D | empty-nontrivially-copyable.cpp | 8 struct Empty; 10 struct Empty { struct 11 Empty(const Empty &e); 15 bool foo(Empty e) { in foo() 21 void caller(Empty &e) { in caller()
|
| H A D | bitfield-access-empty.cpp | 44 struct Empty {}; 48 [[no_unique_address]] Empty e; 65 [[no_unique_address]] Empty e; 82 Empty e; 118 [[no_unique_address]] Empty e; 136 Empty e; 45 struct Empty {}; global() struct
|
| /llvm-project/clang/test/SemaTemplate/ |
| H A D | concepts-using-decl.cpp | 22 struct Empty{}; struct 23 constexpr int EmptySize = sizeof(Empty); 52 expect<0>(base{}.foo<Empty>()); in func() 54 expect<1>(bar1{}.foo<Empty>()); in func() 56 expect<1>(bar2{}.foo<Empty>()); in func() 58 expect<1>(bar3{}.foo<Empty>()); in func() 87 expect<0>(base1{}.foo<Empty>()); in func() 88 expect<1>(bar1{}.foo<Empty>()); in func() 89 expect<0>(base2{}.foo<Empty>()); in func() 90 expect<1>(bar2{}.foo<Empty>()); in func() [all …]
|
| /llvm-project/libcxx/test/libcxx/ranges/range.adaptors/range.move.wrap/ |
| H A D | empty_object.pass.cpp | 21 struct Empty { struct 22 Empty() noexcept {} in Empty() function 23 Empty(Empty const&) noexcept { copied = true; } in Empty() argument 24 Empty(Empty&&) noexcept { moved = true; } in Empty() function 25 Empty& operator=(Empty const&) = delete; 26 Empty& operator=(Empty&&) = delete; 29 using Box = std::ranges::__movable_box<Empty>;
|
| /llvm-project/libcxx/test/libcxx/utilities/expected/expected.expected/ |
| H A D | no_unique_address.compile.pass.cpp | 21 struct Empty {}; 41 static_assert(sizeof(std::expected<Empty, Empty>) == sizeof(bool)); 42 static_assert(sizeof(std::expected<Empty, A>) == 2 * sizeof(int) + alignof(std::expected<Empty, A>)); 43 static_assert(sizeof(std::expected<Empty, B>) == sizeof(B)); 44 static_assert(sizeof(std::expected<A, Empty>) == 2 * sizeof(int) + alignof(std::expected<A, Empty>)); 46 static_assert(sizeof(std::expected<B, Empty>) == sizeof(B)); 50 static_assert(sizeof(std::expected<BoolWithPadding, Empty>) 20 struct Empty {}; global() struct [all...] |
| /llvm-project/llvm/unittests/IR/ |
| H A D | ConstantRangeTest.cpp | 25 static ConstantRange Empty; member in __anonc78e16000111::ConstantRangeTest 263 ConstantRange ConstantRangeTest::Empty(16, false); in TEST_F() 279 EXPECT_FALSE(Empty.isFullSet()); in TEST_F() 280 EXPECT_TRUE(Empty.isEmptySet()); in TEST_F() 281 EXPECT_TRUE(Empty.inverse().isFullSet()); in TEST_F() 282 EXPECT_FALSE(Empty.isWrappedSet()); in TEST_F() 283 EXPECT_FALSE(Empty.contains(APInt(16, 0x0))); in TEST_F() 284 EXPECT_FALSE(Empty.contains(APInt(16, 0x9))); in TEST_F() 285 EXPECT_FALSE(Empty.contains(APInt(16, 0xa))); in TEST_F() 286 EXPECT_FALSE(Empty in TEST_F() 257 ConstantRange ConstantRangeTest::Empty(16, false); global() member in __anonc78e16000111::ConstantRangeTest [all...] |
| /llvm-project/llvm/test/TableGen/ |
| H A D | empty.td | 10 // CHECK: bit Empty = 1; 13 // CHECK: bit Empty = 0; 16 // CHECK: bit Empty = 0; 20 bit Empty = !empty(ADag); 33 // CHECK: bit Empty = 1; 36 // CHECK: bit Empty = 0; 39 // CHECK: bit Empty = 0; 43 bit Empty = !empty(Ints); 54 // CHECK: bit Empty = 1; 57 // CHECK: bit Empty = 0; [all …]
|
| /llvm-project/clang-tools-extra/test/clang-tidy/checkers/performance/ |
| H A D | noexcept-destructor.cpp | 3 struct Empty struct 242 OK21<Empty> value(OK21<Empty>{}); in testTemplates() 243 value = OK21<Empty>{}; in testTemplates() 245 OK22<Empty> value2{OK22<Empty>{}}; in testTemplates() 246 value2 = OK22<Empty>{}; in testTemplates() 248 OK23<Empty> value3{OK23<Empty>{}}; in testTemplates() 249 value3 =OK23<Empty>{}; in testTemplates() 252 struct OK24 : public Empty, OK1 { 256 struct OK25 : virtual Empty, OK1 { 260 struct OK26 : public Empty, IntWrapper {
|
| H A D | noexcept-move-constructor.cpp | 12 struct Empty struct 336 OK21<Empty> value(OK21<Empty>{}); in testTemplates() 337 value = OK21<Empty>{}; in testTemplates() 339 OK22<Empty> value2{OK22<Empty>{}}; in testTemplates() 340 value2 = OK22<Empty>{}; in testTemplates() 342 OK23<Empty> value3{OK23<Empty>{}}; in testTemplates() 343 value3 =OK23<Empty>{}; in testTemplates() 346 struct OK24 : public Empty, OK1 { 351 struct OK25 : virtual Empty, OK1 { 356 struct OK26 : public Empty, IntWrapper {
|
| /llvm-project/libcxx/test/std/ranges/range.factories/range.single.view/ |
| H A D | ctad.compile.pass.cpp | 21 struct Empty {}; struct 24 decltype(std::ranges::single_view(Empty())), 25 std::ranges::single_view<Empty> 29 decltype(std::ranges::single_view(std::declval<Empty&>())), 30 std::ranges::single_view<Empty> 34 decltype(std::ranges::single_view(std::declval<Empty&&>())), 35 std::ranges::single_view<Empty>
|
| H A D | data.pass.cpp | 19 struct Empty {}; struct 39 auto sv = std::ranges::single_view<Empty>(Empty()); in test() 42 ASSERT_SAME_TYPE(decltype(sv.data()), Empty*); in test() 45 const auto sv = std::ranges::single_view<Empty>(Empty()); in test() 48 ASSERT_SAME_TYPE(decltype(sv.data()), const Empty*); in test()
|
| H A D | begin.pass.cpp | 19 struct Empty {}; struct 39 auto sv = std::ranges::single_view<Empty>(Empty()); in test() 42 ASSERT_SAME_TYPE(decltype(sv.begin()), Empty*); in test() 45 const auto sv = std::ranges::single_view<Empty>(Empty()); in test() 48 ASSERT_SAME_TYPE(decltype(sv.begin()), const Empty*); in test()
|
| H A D | end.pass.cpp | 19 struct Empty {}; struct 39 auto sv = std::ranges::single_view<Empty>(Empty()); in test() 42 ASSERT_SAME_TYPE(decltype(sv.end()), Empty*); in test() 45 const auto sv = std::ranges::single_view<Empty>(Empty()); in test() 48 ASSERT_SAME_TYPE(decltype(sv.end()), const Empty*); in test()
|
| H A D | range_concept_conformance.compile.pass.cpp | 20 struct Empty {}; struct 22 static_assert(std::ranges::contiguous_range<std::ranges::single_view<Empty>>); 23 static_assert(std::ranges::contiguous_range<const std::ranges::single_view<Empty>>); 24 static_assert(std::ranges::view<std::ranges::single_view<Empty>>); 25 static_assert(std::ranges::view<std::ranges::single_view<const Empty>>); 26 static_assert(std::ranges::contiguous_range<const std::ranges::single_view<const Empty>>);
|
| /llvm-project/clang/lib/Serialization/ |
| H A D | ASTReaderStmt.cpp | 2985 Stmt::EmptyShell Empty; in ReadStmtFromStream() 3034 S = new (Context) NullStmt(Empty); in ReadStmtFromStream() 3051 S = new (Context) DefaultStmt(Empty); in ReadStmtFromStream() 3055 S = new (Context) LabelStmt(Empty); in ReadStmtFromStream() 3087 S = new (Context) DoStmt(Empty); in ReadStmtFromStream() 3091 S = new (Context) ForStmt(Empty); in ReadStmtFromStream() 3095 S = new (Context) GotoStmt(Empty); in ReadStmtFromStream() 3099 S = new (Context) IndirectGotoStmt(Empty); in ReadStmtFromStream() 3103 S = new (Context) ContinueStmt(Empty); in ReadStmtFromStream() 3107 S = new (Context) BreakStmt(Empty); in ReadStmtFromStream() 2878 Stmt::EmptyShell Empty; ReadStmtFromStream() local [all...] |
| /llvm-project/libcxx/test/std/concepts/concepts.lang/concept.default.init/ |
| H A D | default_initializable.compile.pass.cpp | 39 struct Empty {}; struct 99 struct Derived : public Empty {}; 159 test_true <Empty>(); in test() 191 test_not_const<void(Empty::*)(const int&) >(); in test() 192 test_not_const<void(Empty::*)(const int&) const >(); in test() 193 test_not_const<void(Empty::*)(const int&) volatile>(); in test() 194 test_not_const<void(Empty::*)(const int&) const volatile>(); in test() 195 test_not_const<void(Empty::*)(const int&) &>(); in test() 196 test_not_const<void(Empty::*)(const int&) &&>(); in test() 197 test_not_const<void(Empty::*)(const int&) noexcept>(); in test() [all …]
|
| /llvm-project/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/ |
| H A D | is_nothrow_constructible.pass.cpp | 72 Tuple(Empty&&) noexcept {} in Tuple() 80 test_is_nothrow_constructible<Empty> (); in main() 81 test_is_nothrow_constructible<Empty, const Empty&> (); in main() 88 test_is_nothrow_constructible<Tuple &&, Empty> (); // See bug #19616. in main() 90 static_assert(!std::is_constructible<Tuple&, Empty>::value, ""); in main() 91 test_is_not_nothrow_constructible<Tuple &, Empty> (); // See bug #19616. in main()
|