File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ namespace N {
15
15
[[gsl::suppress]] int x; // expected-error {{'suppress' attribute takes at least 1 argument}}
16
16
[[gsl::suppress ()]] int y; // expected-error {{'suppress' attribute takes at least 1 argument}}
17
17
int [[gsl::suppress (" r" )]] z; // expected-error {{'suppress' attribute cannot be applied to types}}
18
- [[gsl::suppress (f_)]] float f; // expected-error {{expected string literal as argument of 'suppress' attribute}}
18
+ [[gsl::suppress (f_)]] float f; // expected-error {{'suppress' attribute requires a string }}
19
19
}
20
20
21
21
union [[gsl::suppress(" type.1" )]] U {
@@ -52,7 +52,7 @@ namespace N {
52
52
int [[clang::suppress (" r" )]] z;
53
53
// expected-error@-1 {{'suppress' attribute cannot be applied to types}}
54
54
[[clang::suppress (foo)]] float f;
55
- // expected-error@-1 {{expected string literal as argument of 'suppress' attribute}}
55
+ // expected-error@-1 {{'suppress' attribute requires a string }}
56
56
}
57
57
58
58
class [[clang::suppress(" type.1" )]] V {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ SUPPRESS1 switch (a) { // no-warning
31
31
int SUPPRESS2 (" r" ) z;
32
32
SUPPRESS2 (foo)
33
33
float f;
34
- // expected-error@-2 {{expected string literal as argument of 'suppress' attribute}}
34
+ // expected-error@-2 {{'suppress' attribute requires a string }}
35
35
}
36
36
37
37
union SUPPRESS2 (" type.1" ) U {
You can’t perform that action at this time.
0 commit comments