Clang Project

clang_source_code/test/Sema/avr-interrupt-attr.c
1// RUN: %clang_cc1 %s -triple avr-unknown-unknown -verify -fsyntax-only
2struct a { int b; };
3
4struct a test __attribute__((interrupt)); // expected-warning {{'interrupt' attribute only applies to functions}}
5
6__attribute__((interrupt(12))) void foo(void) { } // expected-error {{'interrupt' attribute takes no arguments}}
7
8__attribute__((interrupt)) void food() {}
9