Searched refs:alignof (Results 1 - 25 of 33) sorted by relevance

12

/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...]
H A Dp6.cpp66 static_assert(alignof(W<4,4>) == 4, "");
/external/clang/test/Frontend/
H A Dx86_64-nacl-types.cpp7 static_assert(alignof(char) == 1, "alignof char is wrong");
9 static_assert(alignof(short) == 2, "sizeof short is wrong");
10 static_assert(alignof(short) == 2, "alignof short is wrong");
12 static_assert(alignof(int) == 4, "sizeof int is wrong");
13 static_assert(alignof(int) == 4, "alignof int is wrong");
16 static_assert(sizeof(long) == 4, "alignof long is wrong");
19 static_assert(alignof(lon
[all...]
/external/clang/test/SemaCXX/
H A 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");
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-sizeof-reference.cpp7 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 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...]
H A Dcxx98-compat.cpp139 const int align_of = alignof(int); // expected-warning {{alignof expressions are incompatible with C++98}}
/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/lib/Headers/
H A Dstdalign.h29 #define alignof _Alignof macro
/external/clang/test/Headers/
H A 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), "");
H A Dcxx11.cpp12 #if defined alignof
13 #error alignof should not be defined in C++
/external/chromium_org/tools/gyp/test/mac/clang-cxx-language-standard/
H A Dc++98.cc11 alignof, enumerator in enum:cxx11_keywords
/external/clang/test/Preprocessor/
H A Dcxx_oper_keyword_ms_compat.cpp23 #define alignof macro
108 alignof
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/
H A Dp3-0x.cpp40 int b = alignof(struct Ao {}); // expected-error {{'Ao' cannot be defined in a type specifier}}
/external/clang/test/SemaTemplate/
H A Dattributes.cpp33 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 Dalignas.cpp23 static_assert(alignof(my_union<A, B, C>) == 8, "");
/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.cpp19 CXX11_KEYWORD(alignof); variable
/external/chromium_org/third_party/webrtc/overrides/webrtc/base/
H A Dbasictypes.h93 #define alignof(t) __alignof(t) macro
96 #define alignof(t) __alignof__(t)
/external/chromium_org/mojo/public/c/system/
H A Dmacros.h60 // Like the C++11 |alignof| operator.
62 #define MOJO_ALIGNOF(type) alignof(type)
/external/libcxx/test/utilities/meta/meta.trans/meta.trans.other/
H A Daligned_storage.disabled.cpp162 // 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/ltrace/
H A Dtype.c456 #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/clang/test/Parser/
H A Dcxx0x-decl.cpp102 static_assert(alignof(T) == 1, "");
/external/chromium_org/v8/include/
H A Dv8config.h159 // V8_HAS_CXX11_ALIGNOF - alignof(type) operator supported
406 # define V8_ALIGNOF(type) alignof(type)

Completed in 660 milliseconds

12