diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2013-12-26 17:30:44 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2013-12-26 17:30:44 +0000 |
| commit | 88fe3220536db1fd9d41ce4560ae02752b9c3257 (patch) | |
| tree | ec905bdfc0043278e7c527da454bae8faf0fc9b0 /clang/test/Sema | |
| parent | cedaaea691277dc33bcd213e9c81760711de8309 (diff) | |
| download | bcm5719-llvm-88fe3220536db1fd9d41ce4560ae02752b9c3257.tar.gz bcm5719-llvm-88fe3220536db1fd9d41ce4560ae02752b9c3257.zip | |
Removed a string literal for an attribute name, which means the attribute name will be quoted in the diagnostic. Manually added some quotes to a diagnostic for consistency. Updated the test cases as appropriate.
llvm-svn: 198054
Diffstat (limited to 'clang/test/Sema')
| -rw-r--r-- | clang/test/Sema/attr-used.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Sema/attr-used.c b/clang/test/Sema/attr-used.c index accc7b620b5..4e3bda7609b 100644 --- a/clang/test/Sema/attr-used.c +++ b/clang/test/Sema/attr-used.c @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -verify -fsyntax-only -Wno-private-extern %s -extern int l0 __attribute__((used)); // expected-warning {{used attribute ignored}} -__private_extern__ int l1 __attribute__((used)); // expected-warning {{used attribute ignored}} +extern int l0 __attribute__((used)); // expected-warning {{'used' attribute ignored}} +__private_extern__ int l1 __attribute__((used)); // expected-warning {{'used' attribute ignored}} struct __attribute__((used)) s { // expected-warning {{'used' attribute only applies to variables and functions}} int x; @@ -13,8 +13,8 @@ static void __attribute__((used)) f0(void) { } void f1() { - static int a __attribute__((used)); - int b __attribute__((used)); // expected-warning {{used attribute ignored}} + static int a __attribute__((used)); + int b __attribute__((used)); // expected-warning {{'used' attribute ignored}} } static void __attribute__((used)) f0(void); |

