/external/clang/test/SemaCXX/ |
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{{'… 37 static_assert(alignof(align_small) == 1, "j's alignment is wrong"); // expected-warning{{'alignof' … 38 static_assert(alignof(align_multiple) == 8, "l's alignment is wrong"); // expected-warning{{'aligno… 39 static_assert(alignof(align_member) == 8, "quuux's alignment is wrong"); 41 static_assert(alignof(align_class_template<8>) == 8, "template's alignment is wrong"); 42 static_assert(alignof(align_class_template<16>) == 16, "template's alignment is wrong"); 43 static_assert(alignof(align_class_temp_pack_type<short, int, long>) == alignof(long), "template's a… 44 static_assert(alignof(align_class_temp_pack_expr<8, 16, 32>) == 32, "template's alignment is wrong"… 45 static_assert(alignof(outer<int,char>::inner<double,short>) == alignof(int) * alignof(double), "tem… [all …]
|
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");
|
D | alignof.cpp | 64 static_assert(alignof(test14) == 8, "foo"); // expected-warning {{'alignof' applied to an expressio… 67 static_assert(alignof(int[]) == alignof(int), ""); // ok 71 static_assert(alignof(n) == 32, ""); // expected-warning {{GNU extension}} 78 static_assert(alignof(S<-1>::a) == alignof(int), ""); // expected-warning {{GNU extension}} 84 static_assert(sizeof(k) == alignof(long long), ""); in n()
|
D | alignof-sizeof-reference.cpp | 7 static_assert(alignof(r) == 1, "bad alignment"); // expected-warning {{GNU extension}} in test() 8 static_assert(alignof(char&) == 1, "bad alignment"); in test() 23 …(void)alignof(f_template<int>); // expected-error{{reference to overloaded function could not be r… in rdar9659191()
|
/external/clang/test/Frontend/ |
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 long long is wrong wrong"); 22 static_assert(alignof(void*) == 4, "alignof void * is wrong"); 25 static_assert(alignof(float) == 4, "alignof float is wrong"); 28 static_assert(alignof(double) == 8, "alignof double is wrong"); 31 static_assert(alignof(long double) == 8, "alignof long double is wrong"); 34 static_assert(alignof(va_list) == 4, "alignof va_list is wrong"); [all …]
|
/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/ |
D | p7.cpp | 7 static_assert(alignof(X<char, int, sizeof(int)>) == alignof(int), ""); 8 static_assert(alignof(X<int, char, 1>) == alignof(int), ""); 15 static_assert(alignof(Y<char, int, sizeof(int)>) == alignof(int), ""); 16 static_assert(alignof(Y<int, char, 1>) == alignof(int), ""); // expected-note {{in instantiation of… 19 …int x = alignof int; // expected-error {{expected parentheses around type name in alignof express… in pr16992()
|
D | p5.cpp | 19 static_assert(alignof(E5) == 8, ""); 23 static_assert(alignof(E6) == 4, "");
|
/external/clang/test/Sema/ |
D | alignas.c | 25 _Static_assert(alignof(align_big) == alignof(int), "k's alignment is wrong"); 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/Headers/ |
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), "");
|
D | cxx11.cpp | 13 #if defined alignof 14 #error alignof should not be defined in C++
|
D | thumbv7-apple-ios-types.cpp | 22 (alignof(_Tp) == _AlignOf) && (sizeof(_Tp) == _SizeOf);
|
D | x86_64-apple-macosx-types.cpp | 22 (alignof(_Tp) == _AlignOf) && (sizeof(_Tp) == _SizeOf);
|
/external/clang/test/SemaTemplate/ |
D | attributes.cpp | 33 …static_assert(alignof(t) == alignof(T), "my_aligned_storage align wrong"); // expected-warning{{'a… in C() 37 my_aligned_storage<sizeof(T), alignof(T)> t;
|
D | alignas.cpp | 23 static_assert(alignof(my_union<A, B, C>) == 8, "");
|
/external/libcxx/test/libcxx/experimental/any/ |
D | size_and_alignment.pass.cpp | 22 static_assert(alignof(any) == alignof(void*), ""); in main()
|
D | small_type.pass.cpp | 38 static_assert(alignof(long double) > alignof(void*), ""); in main()
|
/external/ltrace/ |
D | type.c | 456 #undef alignof 457 #define alignof(field,st) ((size_t) ((char*) &st.field - (char*) &st)) macro 474 static size_t char_alignment = alignof(C, cC); in type_alignof() 475 static size_t short_alignment = alignof(s, cs); in type_alignof() 476 static size_t int_alignment = alignof(i, ci); in type_alignof() 477 static size_t long_alignment = alignof(l, cl); in type_alignof() 478 static size_t ptr_alignment = alignof(p, cp); in type_alignof() 479 static size_t float_alignment = alignof(f, cf); in type_alignof() 480 static size_t double_alignment = alignof(d, cd); in type_alignof()
|
/external/clang/test/Preprocessor/ |
D | cxx_oper_keyword_ms_compat.cpp | 25 #define alignof macro 110 alignof
|
/external/boringssl/src/crypto/ |
D | refcount_c11.c | 29 static_assert(alignof(CRYPTO_refcount_t) == alignof(_Atomic CRYPTO_refcount_t),
|
/external/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/ |
D | aligned_storage.pass.cpp | 166 #define alignof __alignof__ in main() macro 173 static_assert(std::alignment_of<T1>::value == alignof(std::max_align_t), in main() 182 static_assert(std::alignment_of<T1>::value == alignof(std::max_align_t), in main() 184 static_assert(sizeof(T1) == 16 + alignof(std::max_align_t), ""); in main()
|
/external/clang/lib/Headers/ |
D | stdalign.h | 29 #define alignof _Alignof macro
|
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/ |
D | p3-0x.cpp | 40 int b = alignof(struct Ao {}); // expected-error {{'Ao' cannot be defined in a type specifier}}
|
/external/clang/test/Lexer/ |
D | cxx0x_keyword_as_cxx98.cpp | 28 int alignof; // already diagnosed in this TU
|
D | keywords_test.cpp | 45 CXX11_KEYWORD(alignof);
|
/external/llvm/lib/Fuzzer/ |
D | cxx.dict | 23 "alignof"
|