[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Sema / avr-signal-attr.c
blob1ec36c74a25ebbceb8f1df57d525e6a41801682d
1 // RUN: %clang_cc1 %s -triple avr-unknown-unknown -verify -fsyntax-only
2 struct a { int b; };
4 struct a test __attribute__((signal)); // expected-warning {{'signal' attribute only applies to functions}}
6 __attribute__((signal(12))) void foo(void) { } // expected-error {{'signal' attribute takes no arguments}}
8 __attribute__((signal)) void food(void) {}