Lines Matching refs:union
3 #include "non-trivial-c-union.h"
5 typedef union { // expected-note 12 {{'U0' has subobjects that are non-trivial to default-initializ…
16 U0 ug0; // expected-error {{cannot default-initialize an object of type 'U0' since it is a union th…
18 …or {{cannot default-initialize an object of type 'S0' since it contains a union that is non-trivia…
20 …ed-error {{cannot default-initialize an object of type 'U0' since it is a union that is non-trivia…
22 …union that is non-trivial to destruct}} expected-error {{cannot use type 'U0' for a function/metho…
23 …union that is non-trivial to destruct}} expected-error {{cannot use type 'S0' for a function/metho…
26 …union that is non-trivial to destruct}} expected-error {{cannot use type 'U0' for a function/metho…
27 …union that is non-trivial to destruct}} expected-error {{cannot use type 'S0' for a function/metho…
31 …union that is non-trivial to destruct}} expected-error {{cannot use type 'U0' for a function/metho…
32 …union that is non-trivial to destruct}} expected-error {{cannot use type 'S0' for a function/metho…
35 …since it is a union that is non-trivial to destruct}} expected-error {{cannot default-initialize a…
36 … since it is a union that is non-trivial to destruct}} expected-error {{cannot copy-initialize an …
37 …d-error {{cannot declare an automatic variable of type 'U0' since it is a union that is non-trivia…
38 …d-error {{cannot declare an automatic variable of type 'U0' since it is a union that is non-trivia…
39 …contains a union that is non-trivial to destruct}} expected-error {{cannot default-initialize an o…
40 … contains a union that is non-trivial to destruct}} expected-error {{cannot copy-initialize an obj…
41 … it contains a union that is non-trivial to destruct}} expected-error {{cannot copy-initialize an …
42 … it contains a union that is non-trivial to destruct}} expected-error {{cannot copy-initialize an …
43 …it contains a union that is non-trivial to destruct}} expected-error {{cannot default-initialize a…
47 …ug0 = ug1; // expected-error {{cannot assign to a variable of type 'U0' since it is a union that i…
48 …sg0 = sg1; // expected-error {{cannot assign to a variable of type 'S0' since it contains a union …
51 …ected-error {{cannot copy-initialize an object of type 'U0' since it is a union that is non-trivia…
52 …error {{cannot copy-initialize an object of type 'S0' since it contains a union that is non-trivia…
53 …ed-error {{cannot default-initialize an object of type 'U0' since it is a union that is non-trivia…
56 …cannot construct an automatic compound literal of type 'U0' since it is a union that is non-trivia…
57 …cannot construct an automatic compound literal of type 'U0' since it is a union that is non-trivia…
58 … it contains a union that is non-trivial to destruct}} expected-error {{cannot copy-initialize an …
59 …it contains a union that is non-trivial to destruct}} expected-error {{cannot default-initialize a…
67 …since it is a union that is non-trivial to destruct}} expected-error {{cannot default-initialize a…
68 …contains a union that is non-trivial to destruct}} expected-error {{cannot default-initialize an o…
69 …since it is a union that is non-trivial to destruct}} expected-error {{cannot default-initialize a…
70 …contains a union that is non-trivial to destruct}} expected-error {{cannot default-initialize an o…
72 …'U0' since it is a union that is non-trivial to destruct}} expected-error {{cannot capture a varia…
73 …e it contains a union that is non-trivial to destruct}} expected-error {{cannot capture a variable…
74 …'U0' since it is a union that is non-trivial to destruct}} expected-error {{cannot capture a varia…
75 …e it contains a union that is non-trivial to destruct}} expected-error {{cannot capture a variable…
76 …'U0' since it is a union that is non-trivial to destruct}} expected-error {{cannot capture a varia…
77 …e it contains a union that is non-trivial to destruct}} expected-error {{cannot capture a variable…
83 …union that is non-trivial to destruct}} // expected-error {{cannot use volatile type 'volatile U0'…
88 …is a union that is non-trivial to destruct}} expected-error {{cannot use type 'U1_SystemHeader' fo…