HomeSort by relevance Sort by last modified time
    Searched refs:alignas (Results 1 - 25 of 127) sorted by null

1 2 3 4 5 6

  /external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/
p8.cpp 3 alignas(double) void f(); // expected-error {{'alignas' attribute only applies to variables, data members and tag types}}
4 alignas(double) unsigned char c[sizeof(double)]; // expected-note {{previous}}
6 alignas(float) extern unsigned char c[sizeof(double)]; // expected-error {{different alignment}}
p5.cpp 3 alignas(1) int n1; // expected-error {{requested alignment is less than minimum alignment of 4 for type 'int'}}
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); // o
    [all...]
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;
18 int n6; // expected-error {{'alignas' must be specified on definition if it is specified on any declaration}}
19 alignas(8) extern int n6; // expected-note {{declared with 'alignas' attribute here}
    [all...]
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 4 for type 'int [1]'}}
  /external/clang/test/FixIt/
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 appear here}} function in namespace:ClassSpecifier
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/SemaCXX/
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 parameter}
    [all...]
cxx11-attr-print.cpp 28 // CHECK: int cxx11_alignas alignas(4);
29 alignas(4) int cxx11_alignas;
65 // CHECK: int n alignas(4
70 alignas(4) int n;
80 // CHECK: int n alignas(4
  /external/clang/lib/Headers/
stdalign.h 28 #define alignas _Alignas macro
  /external/clang/test/Headers/
cxx11.cpp 10 #if defined alignas
11 #error alignas should not be defined in C++
c11.c 21 alignas(alignof(int)) char c[4];
  /external/clang/test/SemaTemplate/
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/libcxx/utilities/any/
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/std/experimental/simd/simd.mem/
store.pass.cpp 28 alignas(32) int32_t buffer[4] = {0};
36 alignas(32) int32_t buffer[4] = {0};
44 alignas(32) int32_t buffer[4] = {0};
53 alignas(32) int32_t buffer[4] = {0};
61 alignas(32) int32_t buffer[4] = {0};
69 alignas(32) int32_t buffer[4] = {0};
  /bionic/tests/
stdalign_test.cpp 29 struct alignas(128) S128 {};
  /external/clang/test/CXX/expr/expr.const/
p5-0x.cpp 62 // alignas(assignment-expression), the assignment-expression shall be an
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/libcxx/test/std/utilities/memory/temporary.buffer/
overaligned.pass.cpp 25 struct alignas(32) A {
  /external/clang/test/Preprocessor/
cxx_oper_keyword_ms_compat.cpp 24 #define alignas macro
109 alignas
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
SmallVector.cpp 20 alignas(16) void *X;
23 alignas(32) void *X;
  /external/clang/test/Parser/
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 appear here}} function
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}} expected-error {{an attribute list cannot appear here}}
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}} expected-error {{'alignas' attribute only applies to}
    [all...]
  /external/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/
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];
delete_align_val_t_replace.pass.cpp 82 struct alignas(OverAligned) A {};
83 struct alignas(std::max_align_t) B {};
  /external/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/
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];
  /external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/
p3-0x.cpp 40 alignas(struct Aa {}) int x; // expected-error {{'Aa' cannot be defined in a type specifier}}
  /external/perfetto/include/perfetto/base/
no_destructor.h 61 alignas(T) char storage_[sizeof(T)];
  /external/google-fruit/include/fruit/impl/util/
type_info.h 31 struct alignas(1) alignas(void*) TypeInfo {

Completed in 1464 milliseconds

1 2 3 4 5 6