/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...] |
H A D | p6.cpp | 66 static_assert(alignof(W<4,4>) == 4, "");
|
/external/clang/test/Frontend/ |
H A D | x86_64-nacl-types.cpp | 7 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 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");
|
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-sizeof-reference.cpp | 7 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 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...] |
H A D | cxx98-compat.cpp | 139 const int align_of = alignof(int); // expected-warning {{alignof expressions are incompatible with C++98}}
|
/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/lib/Headers/ |
H A D | stdalign.h | 29 #define alignof _Alignof macro
|
/external/clang/test/Headers/ |
H A 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), "");
|
H A D | cxx11.cpp | 12 #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 D | c++98.cc | 11 alignof, enumerator in enum:cxx11_keywords
|
/external/clang/test/Preprocessor/ |
H A D | cxx_oper_keyword_ms_compat.cpp | 23 #define alignof macro 108 alignof
|
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/ |
H A D | p3-0x.cpp | 40 int b = alignof(struct Ao {}); // expected-error {{'Ao' cannot be defined in a type specifier}}
|
/external/clang/test/SemaTemplate/ |
H A D | attributes.cpp | 33 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 D | alignas.cpp | 23 static_assert(alignof(my_union<A, B, C>) == 8, "");
|
/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/chromium_org/third_party/webrtc/overrides/webrtc/base/ |
H A D | basictypes.h | 93 #define alignof(t) __alignof(t) macro 96 #define alignof(t) __alignof__(t)
|
/external/chromium_org/mojo/public/c/system/ |
H A D | macros.h | 60 // 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 D | aligned_storage.disabled.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/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/clang/test/Parser/ |
H A D | cxx0x-decl.cpp | 102 static_assert(alignof(T) == 1, "");
|
/external/chromium_org/v8/include/ |
H A D | v8config.h | 159 // V8_HAS_CXX11_ALIGNOF - alignof(type) operator supported 406 # define V8_ALIGNOF(type) alignof(type)
|