diff options
Diffstat (limited to 'test/Sema/attr-unknown.c')
-rw-r--r-- | test/Sema/attr-unknown.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/attr-unknown.c b/test/Sema/attr-unknown.c new file mode 100644 index 000000000000..bec2e29585d9 --- /dev/null +++ b/test/Sema/attr-unknown.c @@ -0,0 +1,4 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -Wunknown-attributes %s + +int x __attribute__((foobar)); // expected-warning {{unknown attribute 'foobar' ignored}} +void z() __attribute__((bogusattr)); // expected-warning {{unknown attribute 'bogusattr' ignored}} |