Home
last modified time | relevance | path

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

12

/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.cpp20 alignas(4) int cxx11_alignas;
61 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()
Dfor-range-examples.cpp221 for (c alignas(8) : arr) { // expected-error {{requires type for loop variable}} in f()
228 for (d alignas(1) : arr) {} // expected-error {{requires type for loop variable}} in f()
/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 …]
Dcxx11-stmt-attributes.cpp30 alignas(8) ; // expected-error {{'alignas' attribute cannot be applied to a statement}} in foo()
/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/clang/test/Headers/
Dcxx11.cpp9 #if defined alignas
10 #error alignas should not be defined in C++
Dc11.c21 alignas(alignof(int)) char c[4];
/external/clang/test/Preprocessor/
Dcxx_oper_keyword_ms_compat.cpp24 #define alignas macro
109 alignas
/external/clang/test/Analysis/
Dpadding_c.c11 alignas(4) int i;
18 alignas(8) int i;
/external/clang/lib/Headers/
Dstdalign.h28 #define alignas _Alignas macro
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/
Dp3-0x.cpp37 alignas(struct Aa {}) int x; // expected-error {{'Aa' cannot be defined in a type specifier}}
/external/clang/test/Lexer/
Dcxx0x_keyword_as_cxx98.cpp27 int alignas; // expected-warning {{'alignas' is a keyword in C++11}}
Dkeywords_test.cpp46 CXX11_KEYWORD(alignas);
/external/v8/include/
Dv8config.h380 # define V8_ALIGNED(n) alignas(n)
400 # define V8_ALIGNAS(type, alignment) alignas(type)
/external/llvm/lib/Fuzzer/
Dcxx.dict22 "alignas"
/external/boringssl/src/crypto/poly1305/
Dpoly1305_test.cc31 #define ALIGNED alignas(16)

12