File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ namespace test_union {
26
26
int * AQ f0; // expected-note 8 {{'U1' is implicitly deleted because variant field 'f0' has an address-discriminated ptrauth qualifier}}
27
27
U1 () = default ;
28
28
~U1 () = default ;
29
- U1 (const U1 &) = default ; // expected-warning {{explicitly defaulted copy constructor is implicitly deleted}} expected-note 2 {{explicitly defaulted function was implicitly deleted here}}
30
- U1 (U1 &&) = default ; // expected-warning {{explicitly defaulted move constructor is implicitly deleted}}
31
- U1 & operator =(const U1 &) = default ; // expected-warning {{explicitly defaulted copy assignment operator is implicitly deleted}} expected-note 2 {{explicitly defaulted function was implicitly deleted here}}
32
- U1 & operator =(U1 &&) = default ; // expected-warning {{explicitly defaulted move assignment operator is implicitly deleted}}
29
+ U1 (const U1 &) = default ; // expected-warning {{explicitly defaulted copy constructor is implicitly deleted}} expected-note 2 {{explicitly defaulted function was implicitly deleted here}} expected-note {{replace 'default' with 'delete'}}
30
+ U1 (U1 &&) = default ; // expected-warning {{explicitly defaulted move constructor is implicitly deleted}} expected-note {{replace 'default' with 'delete'}}
31
+ U1 & operator =(const U1 &) = default ; // expected-warning {{explicitly defaulted copy assignment operator is implicitly deleted}} expected-note 2 {{explicitly defaulted function was implicitly deleted here}} expected-note {{replace 'default' with 'delete'}}
32
+ U1 & operator =(U1 &&) = default ; // expected-warning {{explicitly defaulted move assignment operator is implicitly deleted}} expected-note {{replace 'default' with 'delete'}}
33
33
};
34
34
35
35
// It's fine if the user has explicitly defined the special functions.
@@ -48,7 +48,7 @@ namespace test_union {
48
48
// class.
49
49
struct S0 {
50
50
union {
51
- int * AQ f0; // expected-note 4 {{'' is implicitly deleted because variant field 'f0' has an address-discriminated ptrauth qualifier}}
51
+ int * AQ f0; // expected-note 4 {{is implicitly deleted because variant field 'f0' has an address-discriminated ptrauth qualifier}}
52
52
char f1;
53
53
};
54
54
};
You can’t perform that action at this time.
0 commit comments