/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;
|
/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/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/libcxx/test/std/experimental/simd/simd.mem/ |
D | store.pass.cpp | 28 alignas(32) int32_t buffer[4] = {0}; in test_store() 36 alignas(32) int32_t buffer[4] = {0}; in test_store() 44 alignas(32) int32_t buffer[4] = {0}; in test_store() 53 alignas(32) int32_t buffer[4] = {0}; in test_store() 61 alignas(32) int32_t buffer[4] = {0}; in test_store() 69 alignas(32) int32_t buffer[4] = {0}; in test_store()
|
/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/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.single/ |
D | new_align_val_t_replace.pass.cpp | 31 struct alignas(OverAligned) A { 39 struct alignas(std::max_align_t) B 48 alignas(OverAligned) char DummyData[OverAligned];
|
D | delete_align_val_t_replace.pass.cpp | 81 struct alignas(OverAligned) A {}; 82 struct alignas(std::max_align_t) B {};
|
D | new_align_val_t_nothrow_replace.pass.cpp | 55 struct alignas(OverAligned) A 70 alignas(OverAligned) char Buff[OverAligned * 2];
|
/external/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/ |
D | new_align_val_t_replace.pass.cpp | 31 struct alignas(OverAligned) A { 39 struct alignas(std::max_align_t) B 48 alignas(OverAligned) char DummyData[OverAligned * 4];
|
D | delete_align_val_t_replace.pass.cpp | 82 struct alignas(OverAligned) A {}; 83 struct alignas(std::max_align_t) B {};
|
D | new_align_val_t_nothrow_replace.pass.cpp | 54 struct alignas(OverAligned) A 69 alignas(OverAligned) char Buff[OverAligned * 3];
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | TrailingObjects.h | 99 class alignas(1) TrailingObjectsAligner<1> : public TrailingObjectsBase {}; 101 class alignas(2) TrailingObjectsAligner<2> : public TrailingObjectsBase {}; 103 class alignas(4) TrailingObjectsAligner<4> : public TrailingObjectsBase {}; 105 class alignas(8) TrailingObjectsAligner<8> : public TrailingObjectsBase {}; 107 class alignas(16) TrailingObjectsAligner<16> : public TrailingObjectsBase { 110 class alignas(32) TrailingObjectsAligner<32> : public TrailingObjectsBase {
|
/external/boringssl/src/crypto/cipher_extra/ |
D | e_aesgcmsiv.c | 39 alignas(16) uint8_t key[16*15]; 233 alignas(16) uint8_t htable[16*8]; in gcm_siv_asm_polyval() 292 alignas(16) union { in aead_aes_gcm_siv_asm_crypt_last_block() 321 alignas(16) uint8_t padded_nonce[16]; in aead_aes_gcm_siv_kdf() 324 alignas(16) uint64_t key_material[12]; in aead_aes_gcm_siv_kdf() 366 alignas(16) uint64_t record_auth_key[2]; in aead_aes_gcm_siv_asm_seal_scatter() 367 alignas(16) uint64_t record_enc_key[4]; in aead_aes_gcm_siv_asm_seal_scatter() 371 alignas(16) uint8_t tag[16] = {0}; in aead_aes_gcm_siv_asm_seal_scatter() 438 alignas(16) uint64_t record_auth_key[2]; in aead_aes_gcm_siv_asm_open() 439 alignas(16) uint64_t record_enc_key[4]; in aead_aes_gcm_siv_asm_open() [all …]
|
D | e_chacha20poly1305.c | 52 alignas(16) uint8_t key[32]; 63 alignas(16) uint8_t key[32]; 162 alignas(16) uint8_t poly1305_key[32]; in calc_tag() 286 alignas(4) uint8_t derived_key[32]; in aead_xchacha20_poly1305_seal_scatter() 287 alignas(4) uint8_t derived_nonce[12]; in aead_xchacha20_poly1305_seal_scatter() 367 alignas(4) uint8_t derived_key[32]; in aead_xchacha20_poly1305_open_gather() 368 alignas(4) uint8_t derived_nonce[12]; in aead_xchacha20_poly1305_open_gather()
|
/external/clang/test/Headers/ |
D | cxx11.cpp | 10 #if defined alignas 11 #error alignas should not be defined in C++
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/DebugInfo/X86/ |
D | align_cpp11.ll | 7 ; alignas(128) char xx; 10 ; class alignas(64) C0 { 14 ; alignas(64) static void *p; 17 ; enum alignas(16) E { 25 ; alignas(2048) S s; 32 ; alignas(32) int i = 42;
|
/external/clang/test/Preprocessor/ |
D | cxx_oper_keyword_ms_compat.cpp | 24 #define alignas macro 109 alignas
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | SmallVector.cpp | 20 alignas(16) void *X; 23 alignas(32) void *X;
|