Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:__alignof__

7   static const int test0 = __alignof__(x); // expected-error {{invalid application of 'alignof' to a field of a class still being defined}}
8 static const int test1 = __alignof__(S0::x); // expected-error {{invalid application of 'alignof' to a field of a class still being defined}}
9 auto test2() -> char(&)[__alignof__(x)]; // expected-error {{invalid application of 'alignof' to a field of a class still being defined}}
14 const int test3 = __alignof__(s1); // expected-error {{invalid application of 'alignof' to an incomplete type 'S1'}}
21 int test4 = __alignof__(x); // ok
22 int test5 = __alignof__(s); // expected-error {{invalid application of 'alignof' to an incomplete type 'S1'}}
25 const int test6 = __alignof__(S2::x);
26 const int test7 = __alignof__(S2::s); // expected-error {{invalid application of 'alignof' to an incomplete type 'S1'}}
36 static const int test8 = __alignof__(s2.x);
37 static const int test9 = __alignof__(s2.s); // expected-error {{invalid application of 'alignof' to an incomplete type 'S1'}}
38 auto test10() -> char(&)[__alignof__(s2.x)];
39 static const int test11 = __alignof__(S3::s2.x);
40 static const int test12 = __alignof__(S3::s2.s); // expected-error {{invalid application of 'alignof' to an incomplete type 'S1'}}
41 auto test13() -> char(&)[__alignof__(s2.x)];
49 static const int test0 = __alignof__(x);
50 static const int test1 = __alignof__(S0::x);
51 auto test2() -> char(&)[__alignof__(x)];
60 const int test8 = __alignof__(S5::x);