xref: /llvm-project/clang/test/Sema/attr-unknown.c (revision e765e0bc8ed06ebb186a9905227273517f0b7240)
1 // RUN: %clang_cc1 -fsyntax-only -verify -Wattributes %s
2 
3 int x __attribute__((foobar)); // expected-warning {{unknown attribute 'foobar' ignored}}
4 void z(void) __attribute__((bogusattr)); // expected-warning {{unknown attribute 'bogusattr' ignored}}
5