/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/ |
D | p5.cpp | 3 alignas(1) int n1; // expected-error {{requested alignment is less than minimum alignment of 4 for … 4 alignas(1) alignas(2) int n2; // expected-error {{less than minimum alignment}} 5 alignas(1) alignas(2) alignas(4) int n3; // ok 6 alignas(1) alignas(2) alignas(0) int n4; // expected-error {{less than minimum alignment}} 7 alignas(1) alignas(2) int n5 alignas(4); // ok 8 alignas(1) alignas(4) int n6 alignas(2); // ok 9 alignas(1) int n7 alignas(2), // expected-error {{less than minimum alignment}} 10 n8 alignas(4); // ok 11 alignas(8) int n9 alignas(2); // ok, overaligned 12 alignas(1) extern int n10; // expected-error {{less than minimum alignment}} [all …]
|
D | p6.cpp | 3 alignas(4) extern int n1; // expected-note {{previous declaration}} 4 alignas(8) int n1; // expected-error {{redeclaration has different alignment requirement (8 vs 4)}} 6 alignas(8) int n2; // expected-note {{previous declaration}} 7 alignas(4) extern int n2; // expected-error {{different alignment requirement (4 vs 8)}} 9 alignas(8) extern int n3; // expected-note {{previous declaration}} 10 alignas(4) extern int n3; // expected-error {{different alignment requirement (4 vs 8)}} 13 alignas(8) extern int n4; 15 alignas(8) extern int n5; 19 alignas(8) extern int n6; // expected-note {{declared with 'alignas' attribute here}} 22 alignas(8) int n7; [all …]
|
D | p8.cpp | 3 alignas(double) void f(); // expected-error {{'alignas' attribute only applies to variables, data m… 4 alignas(double) unsigned char c[sizeof(double)]; // expected-note {{previous}} 6 alignas(float) extern unsigned char c[sizeof(double)]; // expected-error {{different alignment}}
|
D | p7.cpp | 4 alignas(T) alignas(A) T buffer[N]; 12 …alignas(A) T buffer[N]; // expected-error {{requested alignment is less than minimum alignment of …
|
/external/clang/test/SemaCXX/ |
D | attr-cxx0x.cpp | 3 int align_illegal alignas(3); //expected-error {{requested alignment is not a power of 2}} 4 char align_big alignas(int); 5 int align_small alignas(1); // expected-error {{requested alignment is less than minimum}} 6 int align_multiple alignas(1) alignas(8) alignas(1); 7 alignas(4) int align_before; 10 int member alignas(8); 11 int bitfield alignas(1) : 1; // expected-error {{}} 14 void f(alignas(1) char c) { // expected-error {{'alignas' attribute cannot be applied to a function… in f() 15 …alignas(1) register char k; // expected-error {{'alignas' attribute cannot be applied to a variabl… in f() 17 …} catch (alignas(4) int n) { // expected-error {{'alignas' attribute cannot be applied to a 'catch… in f() [all …]
|
D | cxx11-attr-print.cpp | 29 alignas(4) int cxx11_alignas; 70 alignas(4) int n;
|
D | alignof.cpp | 70 alignas(32) extern int n[]; 82 alignas(T) int T1; in n()
|
D | openmp_default_simd_align.cpp | 67 alignas(32) extern int n[2]; 79 alignas(T) int T1; in n()
|
/external/clang/test/FixIt/ |
D | fixit-cxx11-attributes.cpp | 20 alignas(float) [[]] final // expected-error {{an attribute list cannot appear here}} 21 …alignas(float) [[]] [[]] alignas(float): base{}; // expected-error {{an attribute list cannot appe… 28 [[]] [[]] alignas(16) final // expected-error {{an attribute list cannot appear here}} 29 [[]] [[]] alignas(16) [[]]{}; // expected-error {{an attribute list cannot appear here}}
|
/external/clang/test/Parser/ |
D | cxx0x-attributes.cpp | 48 alignas(8) int aligned_attr; 82 alignas(float) [[]] final // expected-error {{an attribute list cannot appear here}} 83 …alignas(float) [[]] [[]] alignas(float): base{}; // expected-error {{an attribute list cannot appe… 86 [[]] [[]] alignas(16) final // expected-error {{an attribute list cannot appear here}} 87 [[]] [[]] alignas(16) [[]]{}; // expected-error {{an attribute list cannot appear here}} 91 class D final alignas ([l) {}]{}); // expected-error {{expected ',' or ']' in lambda capture list}}… 130 using [[]] alignas(4) [[]] ns::i; // expected-error {{an attribute list cannot appear here}} 131 using [[]] alignas(4) [[]] foobar = int; // expected-error {{an attribute list cannot appear here}}… 145 alignas(4 ns::i; // expected-note {{to match this '('}} 205 alignas int aligned_no_params; // expected-error {{expected '('}} [all …]
|
/external/libcxx/test/libcxx/utilities/any/ |
D | small_type.pass.cpp | 35 struct alignas(1) MaxSizeType { 39 struct alignas(BufferAlignment) MaxAlignType { 42 struct alignas(BufferAlignment) MaxSizeAndAlignType { 47 struct alignas(1) OverSizeType { 51 struct alignas(DoubleBufferAlignment) OverAlignedType { 54 struct alignas(DoubleBufferAlignment) OverSizeAndAlignedType {
|
/external/libcxx/test/libcxx/experimental/any/ |
D | small_type.pass.cpp | 35 struct alignas(1) MaxSizeType { 39 struct alignas(BufferAlignment) MaxAlignType { 42 struct alignas(BufferAlignment) MaxSizeAndAlignType { 47 struct alignas(1) OverSizeType { 51 struct alignas(DoubleBufferAlignment) OverAlignedType { 54 struct alignas(DoubleBufferAlignment) OverSizeAndAlignedType {
|
/external/clang/test/CXX/expr/expr.const/ |
D | p5-0x.cpp | 64 alignas(ok) int alignas1; 65 alignas(incomplete) int alignas2; // expected-error {{incomplete}} 66 alignas(expl) int alignas3; // expected-error {{explicit conversion}} 67 alignas(ambig) int alignas4; // expected-error {{ambiguous conversion}}
|
/external/clang/test/SemaTemplate/ |
D | alignas.cpp | 15 alignas(T...) char buffer[max(sizeof(T)...)]; 18 struct alignas(8) A { char c; }; 19 struct alignas(4) B { short s; };
|
/external/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/ |
D | new_align_val_t_replace.pass.cpp | 30 struct alignas(OverAligned) A { 38 struct alignas(std::max_align_t) B 47 alignas(OverAligned) char DummyData[OverAligned * 4];
|
D | delete_align_val_t_replace.pass.cpp | 57 struct alignas(OverAligned) A {}; 58 struct alignas(std::max_align_t) B {};
|
D | new_align_val_t_nothrow_replace.pass.cpp | 29 struct alignas(OverAligned) A 44 alignas(OverAligned) char Buff[OverAligned * 3];
|
/external/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/ |
D | new_align_val_t_replace.pass.cpp | 30 struct alignas(OverAligned) A { 38 struct alignas(std::max_align_t) B 47 alignas(OverAligned) char DummyData[OverAligned];
|
D | delete_align_val_t_replace.pass.cpp | 58 struct alignas(OverAligned) A {}; 59 struct alignas(std::max_align_t) B {};
|
D | new_align_val_t_nothrow_replace.pass.cpp | 29 struct alignas(OverAligned) A 44 alignas(OverAligned) char Buff[OverAligned * 2];
|
/external/boringssl/src/crypto/cipher_extra/ |
D | e_aesgcmsiv.c | 35 alignas(16) uint8_t key[16*15]; 220 alignas(16) uint8_t htable[16*8]; in gcm_siv_asm_polyval() 279 alignas(16) union { in aead_aes_gcm_siv_asm_crypt_last_block() 308 alignas(16) uint8_t padded_nonce[16]; in aead_aes_gcm_siv_kdf() 311 alignas(16) uint64_t key_material[12]; in aead_aes_gcm_siv_kdf() 353 alignas(16) uint64_t record_auth_key[2]; in aead_aes_gcm_siv_asm_seal_scatter() 354 alignas(16) uint64_t record_enc_key[4]; in aead_aes_gcm_siv_asm_seal_scatter() 358 alignas(16) uint8_t tag[16] = {0}; in aead_aes_gcm_siv_asm_seal_scatter() 425 alignas(16) uint64_t record_auth_key[2]; in aead_aes_gcm_siv_asm_open() 426 alignas(16) uint64_t record_enc_key[4]; in aead_aes_gcm_siv_asm_open() [all …]
|
/external/clang/test/Headers/ |
D | cxx11.cpp | 10 #if defined alignas 11 #error alignas should not be defined in C++
|
/external/clang/test/Preprocessor/ |
D | cxx_oper_keyword_ms_compat.cpp | 24 #define alignas macro 109 alignas
|
/external/libcxx/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.default/ |
D | uninitialized_default_construct.pass.cpp | 63 alignas(ThrowsCounted) char pool[sizeof(ThrowsCounted)*N] = {}; in test_ctor_throws() 79 alignas(Counted) char pool[sizeof(Counted)*N] = {}; in test_counted()
|
/external/libcxx/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.value/ |
D | uninitialized_value_construct.pass.cpp | 62 alignas(ThrowsCounted) char pool[sizeof(ThrowsCounted)*N] = {}; in test_ctor_throws() 78 alignas(Counted) char pool[sizeof(Counted)*N] = {}; in test_counted()
|