/external/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/ |
H A D | aligned_storage.pass.cpp | 162 // Use alignof(std::max_align_t) below to find the max alignment instead of 166 #define alignof __alignof__ macro 173 static_assert(std::alignment_of<T1>::value == alignof(std::max_align_t), 182 static_assert(std::alignment_of<T1>::value == alignof(std::max_align_t), 184 static_assert(sizeof(T1) == 16 + alignof(std::max_align_t), "");
|
/external/clang/lib/Headers/ |
H A D | stdalign.h | 29 #define alignof _Alignof macro
|
/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/clang/test/SemaCXX/ |
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.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/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/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/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
|
H A D | keywords_test.cpp | 19 CXX11_KEYWORD(alignof); variable
|
/external/clang/test/Preprocessor/ |
H A D | cxx_oper_keyword_ms_compat.cpp | 25 #define alignof macro 110 alignof
|
/external/ltrace/ |
H A D | type.c | 456 #undef alignof macro 457 #define alignof(field,st) ((size_t) ((char*) &st.field - (char*) &st)) macro 474 static size_t char_alignment = alignof(C, cC); 475 static size_t short_alignment = alignof(s, cs); 476 static size_t int_alignment = alignof(i, ci); 477 static size_t long_alignment = alignof(l, cl); 478 static size_t ptr_alignment = alignof(p, cp); 479 static size_t float_alignment = alignof(f, cf); 480 static size_t double_alignment = alignof(d, cd);
|
/external/e2fsprogs/intl/ |
H A D | dcigettext.c | 114 # define alignof(TYPE) __alignof__ (TYPE) macro 116 # define alignof(TYPE) \ macro 1008 freemem += freemem_size & (alignof (size_t) - 1); 1009 freemem_size = freemem_size & ~ (alignof (size_t) - 1);
|