Searched refs:alignas (Results 1 – 25 of 40) sorted by relevance
12
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; // ok6 alignas(1) alignas(2) alignas(0) int n4; // expected-error {{less than minimum alignment}}7 alignas(1) alignas(2) int n5 alignas(4); // ok8 alignas(1) alignas(4) int n6 alignas(2); // ok9 alignas(1) int n7 alignas(2), // expected-error {{less than minimum alignment}}10 n8 alignas(4); // ok11 alignas(8) int n9 alignas(2); // ok, overaligned12 alignas(1) extern int n10; // expected-error {{less than minimum alignment}}[all …]
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 …]
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}}
4 alignas(T) alignas(A) T buffer[N];12 …alignas(A) T buffer[N]; // expected-error {{requested alignment is less than minimum alignment of …
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 …]
20 alignas(4) int cxx11_alignas;61 alignas(4) int n;
70 alignas(32) extern int n[];82 alignas(T) int T1; in n()
67 alignas(32) extern int n[2];79 alignas(T) int T1; in n()
221 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()
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}}
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 …]
30 alignas(8) ; // expected-error {{'alignas' attribute cannot be applied to a statement}} in foo()
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}}
15 alignas(T...) char buffer[max(sizeof(T)...)];18 struct alignas(8) A { char c; };19 struct alignas(4) B { short s; };
9 #if defined alignas10 #error alignas should not be defined in C++
21 alignas(alignof(int)) char c[4];
24 #define alignas macro109 alignas
11 alignas(4) int i;18 alignas(8) int i;
28 #define alignas _Alignas macro
37 alignas(struct Aa {}) int x; // expected-error {{'Aa' cannot be defined in a type specifier}}
27 int alignas; // expected-warning {{'alignas' is a keyword in C++11}}
46 CXX11_KEYWORD(alignas);
380 # define V8_ALIGNED(n) alignas(n)400 # define V8_ALIGNAS(type, alignment) alignas(type)
22 "alignas"
31 #define ALIGNED alignas(16)