[clang] Fix expected errors in plugin attribute example

b2ba6867ea was landed
with updated error messages in the example file
but not in the test file.
This commit is contained in:
David Spickett 2020-12-21 16:45:57 +00:00
parent fb3c1b3de5
commit 9a93f95fce
1 changed files with 2 additions and 2 deletions

View File

@ -18,5 +18,5 @@ int var1 __attribute__((example("otherstring"))) = 1; // expected-warning {{'exa
class Example {
void __attribute__((example)) fn3(); // expected-error {{'example' attribute only allowed at file scope}}
};
void fn4() __attribute__((example(123))) { } // expected-error {{'example's first argument should be a string literal}}
void fn5() __attribute__((example("a","b", 3, 4.0))) { } // expected-error {{'example' attribute only allowed at most three arguments}}
void fn4() __attribute__((example(123))) { } // expected-error {{first argument to the 'example' attribute must be a string literal}}
void fn5() __attribute__((example("a","b", 3, 4.0))) { } // expected-error {{'example' attribute only accepts at most three arguments}}