Lines Matching refs:S2
16 struct S2 {
17 S2();
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'}}
29 // 's2.x' should depend on the alignment of both x-within-S2 and
30 // s2-within-S3 and thus require 'S3' to be complete. If we start
34 S2 s2;
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)];