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 {
2626 int * AQ f0; // expected-note 8 {{'U1' is implicitly deleted because variant field 'f0' has an address-discriminated ptrauth qualifier}}
2727 U1 () = default ;
2828 ~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'}}
3333 };
3434
3535 // It's fine if the user has explicitly defined the special functions.
@@ -48,7 +48,7 @@ namespace test_union {
4848 // class.
4949 struct S0 {
5050 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}}
5252 char f1;
5353 };
5454 };
You can’t perform that action at this time.
0 commit comments