Skip to content

Commit 9655e7e

Browse files
ahatanakabenlangmuir
authored andcommitted
Fix check strings
The diagnostic messages changed because of the following commits: 3813f29 1376c73 rdar://102768864
1 parent a455476 commit 9655e7e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clang/test/SemaCXX/ptrauth-qualifier.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)