/external/clang/test/Driver/ |
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(long long) == 8, "alignof long long is wrong wrong") [all...] |
mips-long-double.c | 10 _Static_assert(_Alignof(long double) == 8, "alignof long double is wrong"); 13 _Static_assert(_Alignof(long double) == 16, "alignof long double is wrong"); 17 _Static_assert(_Alignof(long double) == 8, "alignof long double is wrong");
|
/external/llvm/unittests/Support/ |
AlignOfTest.cpp | 10 #include "llvm/Support/AlignOf.h" 92 [AlignOf<char>::Alignment > 0] 93 [AlignOf<short>::Alignment > 0] 94 [AlignOf<int>::Alignment > 0] 95 [AlignOf<long>::Alignment > 0] 96 [AlignOf<long long>::Alignment > 0] 97 [AlignOf<float>::Alignment > 0] 98 [AlignOf<double>::Alignment > 0] 99 [AlignOf<long double>::Alignment > 0] 100 [AlignOf<void *>::Alignment > 0 [all...] |
/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/ |
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
|
/external/clang/test/SemaCXX/ |
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_member) == 8, "quuux's alignment is wrong") 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...] |
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'}}
|
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}}
|
/external/clang/test/Index/ |
print-type-size.cpp | 11 // CHECK64: VarDecl=v1:[[@LINE+2]]:7 (Definition) [type=void *] [typekind=Pointer] [sizeof=8] [alignof=8] 12 // CHECK32: VarDecl=v1:[[@LINE+1]]:7 (Definition) [type=void *] [typekind=Pointer] [sizeof=4] [alignof=4] 16 // CHECK64: StructDecl=simple:[[@LINE+2]]:8 (Definition) [type=basic::simple] [typekind=Record] [sizeof=48] [alignof=8] 17 // CHECK32: StructDecl=simple:[[@LINE+1]]:8 (Definition) [type=basic::simple] [typekind=Record] [sizeof=36] [alignof=4] 21 // CHECK64: FieldDecl=c:[[@LINE+1]]:7 (Definition) [type=int] [typekind=Int] [sizeof=4] [alignof=4] [offsetof=40] [BitFieldSize=3] 25 // CHECK64: FieldDecl=f:[[@LINE+1]]:7 (Definition) [type=int] [typekind=Int] [sizeof=4] [alignof=4] [offsetof=133] [BitFieldSize=4] 27 // CHECK64: FieldDecl=g:[[@LINE+2]]:13 (Definition) [type=long long] [typekind=LongLong] [sizeof=8] [alignof=8] [offsetof=192] 28 // CHECK32: FieldDecl=g:[[@LINE+1]]:13 (Definition) [type=long long] [typekind=LongLong] [sizeof=8] [alignof=4] [offsetof=128] 30 // CHECK64: FieldDecl=h:[[@LINE+1]]:8 (Definition) [type=char] [typekind=Char_S] [sizeof=1] [alignof=1] [offsetof=256] [BitFieldSize=3] 34 // CHECK64: FieldDecl=k:[[@LINE+2]]:10 (Definition) [type=char *] [typekind=Pointer] [sizeof=8] [alignof=8] [offsetof=320 [all...] |
/external/chromium_org/base/memory/ |
aligned_memory_unittest.cc | 22 EXPECT_EQ(8u, ALIGNOF(raw8)); 23 EXPECT_EQ(16u, ALIGNOF(raw16)); 24 EXPECT_EQ(256u, ALIGNOF(raw256)); 25 EXPECT_EQ(4096u, ALIGNOF(raw4096)); 38 EXPECT_EQ(8u, ALIGNOF(raw8)); 39 EXPECT_EQ(16u, ALIGNOF(raw16)); 40 EXPECT_EQ(128u, ALIGNOF(raw128)); 54 EXPECT_EQ(256u, ALIGNOF(raw256)); 60 EXPECT_EQ(4096u, ALIGNOF(raw4096));
|
aligned_memory.h | 11 // static AlignedMemory<sizeof(MyClass), ALIGNOF(MyClass)> my_class; 75 // does not understand ALIGNAS(ALIGNOF(Type)) or ALIGNAS(template_param).
|
/external/clang/test/Headers/ |
cxx11.cpp | 10 #if defined alignof 11 #error alignof should not be defined in C++
|
c11.c | 19 alignas(alignof(int)) char c[4];
|
/external/chromium_org/tools/gyp/test/mac/clang-cxx-language-standard/ |
c++98.cc | 11 alignof, enumerator in enum:cxx11_keywords
|
/external/clang/test/SemaTemplate/ |
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;
|
alignas.cpp | 23 static_assert(alignof(my_union<A, B, C>) == 8, "");
|
/external/clang/test/Sema/ |
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/llvm/include/llvm/Support/ |
AlignOf.h | 1 //===--- AlignOf.h - Portable calculation of type alignment -----*- C++ -*-===// 10 // This file defines the AlignOf function that computes alignments for 30 /// AlignOf - A templated class that contains an enum value representing 32 /// AlignOf<int>::Alignment represents the alignment of type "int". The 38 struct AlignOf { 53 /// alignOf - A templated function that returns the minimum alignment of 54 /// of a type. This provides no extra functionality beyond the AlignOf 56 /// alignOf<int>() returns the alignment of an int. 58 inline unsigned alignOf() { return AlignOf<T>::Alignment; [all...] |
/external/clang/test/Lexer/ |
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
|
/external/chromium/third_party/libjingle/overrides/talk/base/ |
basictypes.h | 54 #define alignof(t) __alignof(t) macro 56 #define alignof(t) __alignof__(t)
|
/external/clang/test/Preprocessor/ |
cxx_oper_keyword_ms_compat.cpp | 15 #define alignof macro 100 alignof
|
/external/chromium_org/third_party/libjingle/overrides/talk/base/ |
basictypes.h | 87 #define alignof(t) __alignof(t) macro 90 #define alignof(t) __alignof__(t)
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/nfsd/ |
syscall.h | 91 * on platforms where alignof(void*)>alignof(int). It's needed because
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/nfsd/ |
syscall.h | 91 * on platforms where alignof(void*)>alignof(int). It's needed because
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/linux/nfsd/ |
syscall.h | 91 * on platforms where alignof(void*)>alignof(int). It's needed because
|
/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.7/lib/gcc/arm-eabi/4.7/include/ |
stdalign.h | 32 #define alignof _Alignof macro
|