aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/attributes.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/attributes.c')
-rw-r--r--test/Parser/attributes.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/test/Parser/attributes.c b/test/Parser/attributes.c
index 376ed2e7d2c9..3d69c72c322c 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;
}
@@ -94,5 +94,4 @@ void testFundef5() __attribute__(()) { }
__attribute__((pure)) int testFundef6(int a) { return a; }
-
-
+void deprecatedTestFun(void) __attribute__((deprecated()));