summaryrefslogtreecommitdiff
path: root/test/Sema/avr-interrupt-attr.c
blob: 2dfc72a354da34b5f39d369b627a44931e1112ad (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 %s -triple avr-unknown-unknown -verify -fsyntax-only
struct a { int b; };

struct a test __attribute__((interrupt)); // expected-warning {{'interrupt' attribute only applies to functions}}

__attribute__((interrupt(12))) void foo(void) { } // expected-error {{'interrupt' attribute takes no arguments}}

__attribute__((interrupt)) void food() {}