diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-01-02 18:10:17 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-01-02 18:10:17 +0000 |
commit | 383b07c5da59a796b0fa104a79a95c6148b3863c (patch) | |
tree | d8aae87862d6e979c28cbc05964b68226195d2fc /test/Parser/attributes.c | |
parent | c2f5c3c85f3dc3ea39cc6ee00d89a231f955d8e2 (diff) | |
download | clang-383b07c5da59a796b0fa104a79a95c6148b3863c.tar.gz |
Using the quoted version of an attribute name for consistency with other attribute diagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198326 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/attributes.c')
-rw-r--r-- | test/Parser/attributes.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Parser/attributes.c b/test/Parser/attributes.c index 376ed2e7d2..8d7e5fe503 100644 --- a/test/Parser/attributes.c +++ b/test/Parser/attributes.c @@ -65,27 +65,27 @@ int __attribute__((format(printf, 0 aligned(16) )) missing_rparen_3; // expected int testFundef1(int *a) __attribute__((nonnull(1))) { // \ - // expected-warning {{GCC does not allow nonnull attribute in this position on a function definition}} + // expected-warning {{GCC does not allow 'nonnull' attribute in this position on a function definition}} return *a; } // noreturn is lifted to type qualifier void testFundef2() __attribute__((noreturn)) { // \ - // expected-warning {{GCC does not allow noreturn attribute in this position on a function definition}} + // expected-warning {{GCC does not allow 'noreturn' attribute in this position on a function definition}} testFundef2(); } int testFundef3(int *a) __attribute__((nonnull(1), // \ - // expected-warning {{GCC does not allow nonnull attribute in this position on a function definition}} + // expected-warning {{GCC does not allow 'nonnull' attribute in this position on a function definition}} pure)) { // \ - // expected-warning {{GCC does not allow pure attribute in this position on a function definition}} + // expected-warning {{GCC does not allow 'pure' attribute in this position on a function definition}} return *a; } int testFundef4(int *a) __attribute__((nonnull(1))) // \ - // expected-warning {{GCC does not allow nonnull attribute in this position on a function definition}} + // expected-warning {{GCC does not allow 'nonnull' attribute in this position on a function definition}} __attribute((pure)) { // \ - // expected-warning {{GCC does not allow pure attribute in this position on a function definition}} + // expected-warning {{GCC does not allow 'pure' attribute in this position on a function definition}} return *a; } |