/external/clang/test/Frontend/ |
H A D | x86_64-nacl-types.cpp | 7 static_assert(alignof(char) == 1, "alignof char is wrong"); 10 static_assert(alignof(short) == 2, "alignof short is wrong"); 13 static_assert(alignof(int) == 4, "alignof int is wrong"); 16 static_assert(alignof(long) == 4, "alignof long is wrong"); 19 static_assert(alignof(long long) == 8, "alignof lon [all...] |
/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/ |
H A D | p7.cpp | 7 static_assert(alignof(X<char, int, sizeof(int)>) == alignof(int), ""); variable 8 static_assert(alignof(X<int, char, 1>) == alignof(int), ""); variable 15 static_assert(alignof(Y<char, int, sizeof(int)>) == alignof(int), ""); variable 16 static_assert(alignof(Y<int, char, 1>) == alignof(int), ""); // expected-note {{in instantiation of}} variable 19 int x = alignof int; // expected-error {{expected parentheses around type name in alignof expressio [all...] |
/external/libcxx/test/libcxx/utilities/any/ |
H A D | size_and_alignment.pass.cpp | 22 static_assert(alignof(any) == alignof(void*), "");
|
H A D | small_type.pass.cpp | 20 constexpr std::size_t BufferAlignment = alignof(void*); 21 // Clang doesn't like "alignof(BufferAlignment * 2)" due to PR13986. 71 static_assert(alignof(T) < BufferAlignment, ""); 79 static_assert(alignof(T) == BufferAlignment, ""); 87 static_assert(alignof(T) == BufferAlignment, ""); 95 static_assert(alignof(T) < BufferAlignment, ""); 103 static_assert(alignof(T) > BufferAlignment, ""); 111 static_assert(alignof(T) > BufferAlignment, "");
|
/external/clang/test/SemaCXX/ |
H A D | attr-aligned.cpp | 5 static_assert(alignof(S1) == 8, "attribute ignored"); 6 static_assert(alignof(struct S1) == 1, "attribute applied to original type"); 9 static_assert(alignof(S2) == 8, "attribute not propagated"); 10 static_assert(alignof(struct S2) == 8, "attribute ignored"); 15 static_assert(alignof(S3) == 8, "attribute ignored"); 16 static_assert(alignof(struct S3) == 4, "attribute clobbered");
|
H A D | attr-cxx0x.cpp | 28 template <typename... B> struct alignas(alignof(A) * alignof(B)...) inner {}; 36 static_assert(alignof(align_big) == alignof(int), "k's alignment is wrong"); // expected-warning{{'alignof' applied to an expression is a GNU extension}} 37 static_assert(alignof(align_small) == 1, "j's alignment is wrong"); // expected-warning{{'alignof' applied to an expression is a GNU extension}} 38 static_assert(alignof(align_multiple) == 8, "l's alignment is wrong"); // expected-warning{{'alignof' applied to an expression is a GNU extension}} 39 static_assert(alignof(align_membe 43 static_assert(alignof(align_class_temp_pack_type<short, int, long>) == alignof(long), "template's alignment is wrong"); variable 45 static_assert(alignof(outer<int,char>::inner<double,short>) == alignof(int) * alignof(double), "template's alignment is wrong"); variable [all...] |
H A D | alignof-sizeof-reference.cpp | 7 static_assert(alignof(r) == 1, "bad alignment"); // expected-warning {{GNU extension}} 8 static_assert(alignof(char&) == 1, "bad alignment"); 23 (void)alignof(f_template<int>); // expected-error{{reference to overloaded function could not be resolved; did you mean to call it?}} expected-warning {{GNU extension}}
|
H A D | alignof.cpp | 7 static const int test0 = __alignof__(x); // expected-error {{invalid application of 'alignof' to a field of a class still being defined}} 8 static const int test1 = __alignof__(S0::x); // expected-error {{invalid application of 'alignof' to a field of a class still being defined}} 9 auto test2() -> char(&)[__alignof__(x)]; // expected-error {{invalid application of 'alignof' to a field of a class still being defined}} 14 const int test3 = __alignof__(s1); // expected-error {{invalid application of 'alignof' to an incomplete type 'S1'}} 22 int test5 = __alignof__(s); // expected-error {{invalid application of 'alignof' to an incomplete type 'S1'}} 26 const int test7 = __alignof__(S2::s); // expected-error {{invalid application of 'alignof' to an incomplete type 'S1'}} 37 static const int test9 = __alignof__(s2.s); // expected-error {{invalid application of 'alignof' to an incomplete type 'S1'}} 40 static const int test12 = __alignof__(S3::s2.s); // expected-error {{invalid application of 'alignof' to an incomplete type 'S1'}} 64 static_assert(alignof(test14) == 8, "foo"); // expected-warning {{'alignof' applie 67 static_assert(alignof(int[]) == alignof(int), ""); // ok variable 78 static_assert(alignof(S<-1>::a) == alignof(int), ""); // expected-warning {{GNU extension}} member in namespace:alignof_array_expr [all...] |
/external/libcxx/test/libcxx/experimental/any/ |
H A D | size_and_alignment.pass.cpp | 22 static_assert(alignof(any) == alignof(void*), "");
|
H A D | small_type.pass.cpp | 20 constexpr std::size_t BufferAlignment = alignof(void*); 21 // Clang doesn't like "alignof(BufferAlignment * 2)" due to PR13986. 71 static_assert(alignof(T) < BufferAlignment, ""); 79 static_assert(alignof(T) == BufferAlignment, ""); 87 static_assert(alignof(T) == BufferAlignment, ""); 95 static_assert(alignof(T) < BufferAlignment, ""); 103 static_assert(alignof(T) > BufferAlignment, ""); 111 static_assert(alignof(T) > BufferAlignment, "");
|
/external/clang/test/Sema/ |
H A D | alignas.c | 25 _Static_assert(alignof(align_big) == alignof(int), "k's alignment is wrong"); variable 26 _Static_assert(alignof(align_small) == 1, "j's alignment is wrong"); 27 _Static_assert(alignof(align_multiple) == 8, "l's alignment is wrong"); 28 _Static_assert(alignof(struct align_member) == 8, "quuux's alignment is wrong");
|
/external/clang/lib/Headers/ |
H A D | stdalign.h | 29 #define alignof _Alignof macro
|
/external/clang/test/Headers/ |
H A D | c11.c | 21 alignas(alignof(int)) char c[4]; 28 _Static_assert(alignof(max_align_t) >= alignof(long long), ""); 30 _Static_assert(alignof(max_align_t) >= alignof(long double), "");
|
H A D | cxx11.cpp | 14 #if defined alignof 15 #error alignof should not be defined in C++
|
/external/clang/test/Preprocessor/ |
H A D | cxx_oper_keyword_ms_compat.cpp | 25 #define alignof macro 110 alignof
|
/external/libcxx/test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/ |
H A D | deallocate.pass.cpp | 36 assert(R.checkAlloc(ret, N * sizeof(T), alignof(T))); 39 assert(R.checkDealloc(ret, N * sizeof(T), alignof(T))); 53 constexpr std::size_t MA = alignof(std::max_align_t); 58 testForSizeAndAlign<73, alignof(void*)>();
|
H A D | allocate.pass.cpp | 39 assert(R.checkAlloc(ret, N * sizeof(T), alignof(T))); 92 constexpr std::size_t MA = alignof(std::max_align_t); 97 testForSizeAndAlign<73, alignof(void*)>();
|
/external/boringssl/src/crypto/ |
H A D | refcount_c11.c | 29 static_assert(alignof(CRYPTO_refcount_t) == alignof(_Atomic CRYPTO_refcount_t), variable
|
/external/clang/test/SemaTemplate/ |
H A D | attributes.cpp | 33 static_assert(alignof(t) == alignof(T), "my_aligned_storage align wrong"); // expected-warning{{'alignof' applied to an expression is a GNU extension}} 37 my_aligned_storage<sizeof(T), alignof(T)> t;
|
H A D | alignas.cpp | 23 static_assert(alignof(my_union<A, B, C>) == 8, "");
|
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/ |
H A D | p3-0x.cpp | 43 int b = alignof(struct Ao {}); // expected-error {{'Ao' cannot be defined in a type specifier}}
|
/external/clang/test/Lexer/ |
H A D | cxx0x_keyword_as_cxx98.cpp | 19 extern int CONCAT(align,of); // expected-warning {{'alignof' is a keyword in C++11}} 28 int alignof; // already diagnosed in this TU variable
|
/external/libmojo/mojo/public/c/system/ |
H A D | macros.h | 20 // Like the C++11 |alignof| operator. 22 #define MOJO_ALIGNOF(type) alignof(type)
|
/external/libcxx/test/support/ |
H A D | controlled_allocators.hpp | 55 constexpr std::size_t MaxAlignV = alignof(std::max_align_t); 253 P->countAlloc(ret, n*sizeof(T), alignof(T)); 260 P->countDealloc(vp, n*sizeof(T), alignof(T)); 371 char* unaligned_ptr = aligned_ptr + alignof(T); 374 P->countAlloc(unaligned_ptr, n * sizeof(T), alignof(T)); 382 char* aligned_ptr = ((char*)p) - alignof(T); 385 P->countDealloc(p, n*sizeof(T), alignof(T)); 405 static const std::size_t BlockSize = alignof(std::max_align_t); 419 if (alignof(T) == BlockSize) { 422 return reinterpret_cast<std::uintptr_t>(p) % BlockSize == alignof( [all...] |
/external/libcxx/test/libcxx/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/ |
H A D | db_deallocate.pass.cpp | 39 - alignof(std::max_align_t);
|