Searched defs:alignof (Results 1 - 13 of 13) sorted by relevance

/external/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/
H A Daligned_storage.pass.cpp164 // Use alignof(std::max_align_t) below to find the max alignment instead of
168 #define alignof __alignof__ macro
175 static_assert(std::alignment_of<T1>::value == alignof(std::max_align_t),
184 static_assert(std::alignment_of<T1>::value == alignof(std::max_align_t),
186 static_assert(sizeof(T1) == 16 + alignof(std::max_align_t), "");
/external/clang/lib/Headers/
H A Dstdalign.h29 #define alignof _Alignof macro
/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/
H A Dp7.cpp7 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 Dattr-cxx0x.cpp28 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 Dalignof.cpp7 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 Drefcount_c11.c29 static_assert(alignof(CRYPTO_refcount_t) == alignof(_Atomic CRYPTO_refcount_t), variable
H A Dinternal.h120 #define alignof __alignof macro
/external/clang/test/Sema/
H A Dalignas.c25 _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 Dcxx0x_keyword_as_cxx98.cpp19 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 Dkeywords_test.cpp45 CXX11_KEYWORD(alignof); variable
/external/clang/test/Preprocessor/
H A Dcxx_oper_keyword_ms_compat.cpp25 #define alignof macro
110 alignof
/external/skia/src/core/
H A DSkFindAndPlaceGlyph.h92 #define alignof __alignof macro
94 SkASSERT(alignof(Variant) <= alignof(Space));
/external/e2fsprogs/intl/
H A Ddcigettext.c114 # 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);

Completed in 268 milliseconds