
unknown attributes that we discard. Add a diagnostic group for unknown attribute warnings to allow turning these off when we don't care. Also consolidates the tests for this case. llvm-svn: 107864
5 lines
255 B
C
5 lines
255 B
C
// 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}}
|