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