Home
last modified time | relevance | path

Searched refs:alignas (Results 1 – 25 of 75) sorted by relevance

123

/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/
Dp5.cpp3 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 …]
Dp6.cpp3 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 …]
Dp8.cpp3 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}}
Dp7.cpp4 alignas(T) alignas(A) T buffer[N];
12alignas(A) T buffer[N]; // expected-error {{requested alignment is less than minimum alignment of …
/external/clang/test/SemaCXX/
Dattr-cxx0x.cpp3 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()
15alignas(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 …]
Dcxx11-attr-print.cpp29 alignas(4) int cxx11_alignas;
70 alignas(4) int n;
Dalignof.cpp70 alignas(32) extern int n[];
82 alignas(T) int T1; in n()
Dopenmp_default_simd_align.cpp67 alignas(32) extern int n[2];
79 alignas(T) int T1; in n()
/external/clang/test/FixIt/
Dfixit-cxx11-attributes.cpp20 alignas(float) [[]] final // expected-error {{an attribute list cannot appear here}}
21alignas(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/
Dcxx0x-attributes.cpp48 alignas(8) int aligned_attr;
82 alignas(float) [[]] final // expected-error {{an attribute list cannot appear here}}
83alignas(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/
Dsmall_type.pass.cpp35 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/
Dsmall_type.pass.cpp35 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/
Dp5-0x.cpp64 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/
Dalignas.cpp15 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/
Dnew_align_val_t_replace.pass.cpp30 struct alignas(OverAligned) A {
38 struct alignas(std::max_align_t) B
47 alignas(OverAligned) char DummyData[OverAligned * 4];
Ddelete_align_val_t_replace.pass.cpp57 struct alignas(OverAligned) A {};
58 struct alignas(std::max_align_t) B {};
Dnew_align_val_t_nothrow_replace.pass.cpp29 struct alignas(OverAligned) A
44 alignas(OverAligned) char Buff[OverAligned * 3];
/external/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/
Dnew_align_val_t_replace.pass.cpp30 struct alignas(OverAligned) A {
38 struct alignas(std::max_align_t) B
47 alignas(OverAligned) char DummyData[OverAligned];
Ddelete_align_val_t_replace.pass.cpp58 struct alignas(OverAligned) A {};
59 struct alignas(std::max_align_t) B {};
Dnew_align_val_t_nothrow_replace.pass.cpp29 struct alignas(OverAligned) A
44 alignas(OverAligned) char Buff[OverAligned * 2];
/external/boringssl/src/crypto/cipher_extra/
De_aesgcmsiv.c35 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/
Dcxx11.cpp10 #if defined alignas
11 #error alignas should not be defined in C++
/external/clang/test/Preprocessor/
Dcxx_oper_keyword_ms_compat.cpp24 #define alignas macro
109 alignas
/external/libcxx/test/std/utilities/memory/specialized.algorithms/uninitialized.construct.default/
Duninitialized_default_construct.pass.cpp63 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/
Duninitialized_value_construct.pass.cpp62 alignas(ThrowsCounted) char pool[sizeof(ThrowsCounted)*N] = {}; in test_ctor_throws()
78 alignas(Counted) char pool[sizeof(Counted)*N] = {}; in test_counted()

123