| /llvm-project-15.0.7/libcxx/test/std/algorithms/algorithms.results/ |
| H A D | no_unique_address.compile.pass.cpp | 24 struct Empty {}; struct 29 static_assert(sizeof(std::ranges::in_fun_result<Empty, Empty>) == 2); 33 static_assert(sizeof(std::ranges::in_in_result<Empty, Empty>) == 2); 42 static_assert(sizeof(std::ranges::in_in_out_result<char, Empty, Empty>) == 2); 43 static_assert(sizeof(std::ranges::in_in_out_result<Empty, char, Empty>) == 2); 44 static_assert(sizeof(std::ranges::in_in_out_result<Empty, Empty, char>) == 2); 46 static_assert(sizeof(std::ranges::in_in_out_result<Empty, Empty, Empty>) == 3); 51 static_assert(sizeof(std::ranges::in_out_out_result<char, Empty, Empty>) == 2); 52 static_assert(sizeof(std::ranges::in_out_out_result<Empty, char, Empty>) == 2); 53 static_assert(sizeof(std::ranges::in_out_out_result<Empty, Empty, char>) == 2); [all …]
|
| /llvm-project-15.0.7/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]; 41 Empty e; 46 Empty e[2]; 51 Empty e; 92 struct Empty { }; struct 105 struct Empty { }; struct [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()
|
| H A D | has_unique_object_reps_no_unique_addr.cpp | 4 struct Empty {}; struct 7 [[no_unique_address]] Empty e; 15 [[no_unique_address]] Empty e; 22 [[no_unique_address]] Empty e1; 23 [[no_unique_address]] Empty e2;
|
| /llvm-project-15.0.7/libcxx/test/std/concepts/concepts.lang/concept.constructible/ |
| H A D | constructible_from.compile.pass.cpp | 21 struct Empty {}; struct 96 test<void (Empty::*)(const int&)>(); in test() 98 test<void (Empty::*)(const int&) const>(); in test() 99 test<void (Empty::*)(const int&) const, void (Empty::*)(const int&)>(); in test() 101 test<void (Empty::*)(const int&) volatile, in test() 105 test<void (Empty::*)(const int&)&>(); in test() 106 test<void (Empty::*)(const int&)&, void (Empty::*)(const int&) &&>(); in test() 107 test<void (Empty::*)(const int&) &&>(); in test() 108 test<void (Empty::*)(const int&)&&, void (Empty::*)(const int&)>(); in test() 110 test<void (Empty::*)(const int&) throw(), in test() [all …]
|
| /llvm-project-15.0.7/libcxx/test/libcxx/ranges/range.adaptors/range.copy.wrap/ |
| H A D | no_unique_address.pass.cpp | 22 struct Empty { struct 23 Empty() noexcept { } in Empty() function 24 Empty(Empty const&) noexcept { copied = true; } in Empty() function 25 Empty(Empty&&) noexcept { moved = true; } in Empty() argument 26 Empty& operator=(Empty const&) = delete; 27 Empty& operator=(Empty&&) = delete; 30 using Box = std::ranges::__copyable_box<Empty>;
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | ConstantRangeTest.cpp | 598 EXPECT_EQ(Empty.unionWith(Empty), Empty); in TEST_F() 702 EXPECT_EQ(Empty.add(Empty), Empty); in TEST_F() 890 EXPECT_EQ(Empty.sub(Empty), Empty); in TEST_F() 1023 EXPECT_EQ(Empty.umax(Empty), Empty); in TEST_F() 1052 EXPECT_EQ(Empty.smax(Empty), Empty); in TEST_F() 1079 EXPECT_EQ(Empty.umin(Empty), Empty); in TEST_F() 1106 EXPECT_EQ(Empty.smin(Empty), Empty); in TEST_F() 1137 EXPECT_EQ(Empty.udiv(Empty), Empty); in TEST_F() 1343 EXPECT_EQ(Empty.shl(Empty), Empty); in TEST_F() 1383 EXPECT_EQ(Empty.lshr(Empty), Empty); in TEST_F() [all …]
|
| /llvm-project-15.0.7/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; 54 // CHECK: bit Empty = 1; 57 // CHECK: bit Empty = 0; 60 // CHECK: bit Empty = 0; [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.factories/range.single.view/ |
| H A D | ctad.compile.pass.cpp | 22 struct Empty {}; struct 25 decltype(std::ranges::single_view(Empty())), 26 std::ranges::single_view<Empty> 30 decltype(std::ranges::single_view(std::declval<Empty&>())), 31 std::ranges::single_view<Empty> 35 decltype(std::ranges::single_view(std::declval<Empty&&>())), 36 std::ranges::single_view<Empty>
|
| H A D | data.pass.cpp | 20 struct Empty {}; struct 40 auto sv = std::ranges::single_view<Empty>(Empty()); in test() 43 ASSERT_SAME_TYPE(decltype(sv.data()), Empty*); in test() 46 const auto sv = std::ranges::single_view<Empty>(Empty()); in test() 49 ASSERT_SAME_TYPE(decltype(sv.data()), const Empty*); in test()
|
| H A D | begin.pass.cpp | 20 struct Empty {}; struct 40 auto sv = std::ranges::single_view<Empty>(Empty()); in test() 43 ASSERT_SAME_TYPE(decltype(sv.begin()), Empty*); in test() 46 const auto sv = std::ranges::single_view<Empty>(Empty()); in test() 49 ASSERT_SAME_TYPE(decltype(sv.begin()), const Empty*); in test()
|
| H A D | end.pass.cpp | 20 struct Empty {}; struct 40 auto sv = std::ranges::single_view<Empty>(Empty()); in test() 43 ASSERT_SAME_TYPE(decltype(sv.end()), Empty*); in test() 46 const auto sv = std::ranges::single_view<Empty>(Empty()); in test() 49 ASSERT_SAME_TYPE(decltype(sv.end()), const Empty*); in test()
|
| H A D | range_concept_conformance.compile.pass.cpp | 21 struct Empty {}; struct 23 static_assert(std::ranges::contiguous_range<std::ranges::single_view<Empty>>); 24 static_assert(std::ranges::contiguous_range<const std::ranges::single_view<Empty>>); 25 static_assert(std::ranges::view<std::ranges::single_view<Empty>>); 26 static_assert(std::ranges::view<std::ranges::single_view<const Empty>>); 27 static_assert(std::ranges::contiguous_range<const std::ranges::single_view<const Empty>>);
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| 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 | sanitize-dtor-zero-size-field.cpp | 4 struct Empty {}; struct 101 [[no_unique_address]] Empty e; 117 [[no_unique_address]] Empty e; 133 [[no_unique_address]] Empty e; 148 [[no_unique_address]] Empty e; 165 [[no_unique_address]] Empty e; 179 [[no_unique_address]] Empty e; 196 [[no_unique_address]] Empty e; 209 [[no_unique_address]] Empty e;
|
| /llvm-project-15.0.7/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-15.0.7/clang/lib/Serialization/ |
| H A D | ASTReaderStmt.cpp | 2722 Stmt::EmptyShell Empty; in ReadStmtFromStream() local 2771 S = new (Context) NullStmt(Empty); in ReadStmtFromStream() 2791 S = new (Context) LabelStmt(Empty); in ReadStmtFromStream() 2822 S = new (Context) DoStmt(Empty); in ReadStmtFromStream() 2826 S = new (Context) ForStmt(Empty); in ReadStmtFromStream() 2830 S = new (Context) GotoStmt(Empty); in ReadStmtFromStream() 2842 S = new (Context) BreakStmt(Empty); in ReadStmtFromStream() 2851 S = new (Context) DeclStmt(Empty); in ReadStmtFromStream() 2859 S = new (Context) MSAsmStmt(Empty); in ReadStmtFromStream() 2922 S = new (Context) ParenExpr(Empty); in ReadStmtFromStream() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/ |
| H A D | is_nothrow_constructible.pass.cpp | 62 class Empty class 96 Tuple(Empty&&) noexcept {} in Tuple() 104 test_is_nothrow_constructible<Empty> (); in main() 105 test_is_nothrow_constructible<Empty, const Empty&> (); in main() 112 test_is_nothrow_constructible<Tuple &&, Empty> (); // See bug #19616. in main() 114 static_assert(!std::is_constructible<Tuple&, Empty>::value, ""); in main() 115 test_is_not_nothrow_constructible<Tuple &, Empty> (); // See bug #19616. in main()
|
| /llvm-project-15.0.7/clang/test/Layout/ |
| H A D | aix-no-unique-address-with-double.cpp | 9 struct Empty {}; struct 29 Empty emp; 62 [[no_unique_address]] Empty emp; 126 [[no_unique_address]] Empty emp; 140 [[no_unique_address]] Empty emp, emp2; 152 int a = sizeof(Empty);
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | padding_no_unique_address.cpp | 3 class Empty {}; // no-warning class 8 [[no_unique_address]] Empty empty; 16 [[no_unique_address]] Empty e1, e2; 23 [[no_unique_address]] Empty empty; 29 [[no_unique_address]] Empty e1, e2;
|
| H A D | padding_cpp.cpp | 121 class Empty {}; // no-warning class 124 Empty e1; 126 Empty e2; 129 class EBO1 : public Empty { // xxxexpected-warning{{Excessive padding in 'class EBO1'}} 135 class EBO2 : public Empty { // xxxexpected-warning{{Excessive padding in 'class EBO2'}} 136 Empty c1; 138 Empty c2;
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.unary/meta.unary.cat/ |
| H A D | is_member_pointer.pass.cpp | 47 class Empty class 78 test_is_member_pointer<FunctionPtr Empty::*>(); in main() 79 test_is_member_pointer<void (Empty::*)()>(); in main() 94 test_is_not_member_pointer<Empty>(); in main() 101 test_is_member_pointer<int (Empty::*)(int, ...) const>(); in main() 102 test_is_member_pointer<int (Empty::*)(int, long, long) const noexcept>(); in main() 103 test_is_member_pointer<int (Empty::*)() & noexcept>(); in main()
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | aarch64-args.cpp | 16 struct Empty {}; struct 21 EXTERNC int empty_arg(struct Empty e, int a) { in empty_arg() 28 EXTERNC struct Empty empty_ret(void) { in empty_ret() 29 struct Empty e; in empty_ret() 57 EXTERNC int sort_of_empty_arg(struct Empty e, int a) { in sort_of_empty_arg()
|
| /llvm-project-15.0.7/compiler-rt/test/msan/ |
| H A D | dtor-bit-fields.cpp | 29 struct Empty { struct 31 ~Empty() {} in ~Empty() argument 57 Empty *e = new Empty(); in main() 58 e->~Empty(); in main()
|