Home
last modified time | relevance | path

Searched refs:alignof (Results 1 – 25 of 44) sorted by relevance

12

/external/clang/test/SemaCXX/
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{{'…
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 …]
Dattr-aligned.cpp5 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");
Dalignof.cpp64 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()
Dalignof-sizeof-reference.cpp7 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/
Dx86_64-nacl-types.cpp7 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/
Dp7.cpp7 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()
Dp5.cpp19 static_assert(alignof(E5) == 8, "");
23 static_assert(alignof(E6) == 4, "");
/external/clang/test/Sema/
Dalignas.c25 _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/
Dc11.c21 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), "");
Dcxx11.cpp13 #if defined alignof
14 #error alignof should not be defined in C++
Dthumbv7-apple-ios-types.cpp22 (alignof(_Tp) == _AlignOf) && (sizeof(_Tp) == _SizeOf);
Dx86_64-apple-macosx-types.cpp22 (alignof(_Tp) == _AlignOf) && (sizeof(_Tp) == _SizeOf);
/external/clang/test/SemaTemplate/
Dattributes.cpp33 …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;
Dalignas.cpp23 static_assert(alignof(my_union<A, B, C>) == 8, "");
/external/libcxx/test/libcxx/experimental/any/
Dsize_and_alignment.pass.cpp22 static_assert(alignof(any) == alignof(void*), ""); in main()
Dsmall_type.pass.cpp38 static_assert(alignof(long double) > alignof(void*), ""); in main()
/external/ltrace/
Dtype.c456 #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/
Dcxx_oper_keyword_ms_compat.cpp25 #define alignof macro
110 alignof
/external/boringssl/src/crypto/
Drefcount_c11.c29 static_assert(alignof(CRYPTO_refcount_t) == alignof(_Atomic CRYPTO_refcount_t),
/external/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/
Daligned_storage.pass.cpp166 #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/
Dstdalign.h29 #define alignof _Alignof macro
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/
Dp3-0x.cpp40 int b = alignof(struct Ao {}); // expected-error {{'Ao' cannot be defined in a type specifier}}
/external/clang/test/Lexer/
Dcxx0x_keyword_as_cxx98.cpp28 int alignof; // already diagnosed in this TU
Dkeywords_test.cpp45 CXX11_KEYWORD(alignof);
/external/llvm/lib/Fuzzer/
Dcxx.dict23 "alignof"

12