blob: a5920bf4045c69bb50ce0569b80f5e212755acbd [file] [log] [blame]
Dylan McKaye8232d72017-02-08 05:09:26 +00001// RUN: %clang_cc1 %s -triple avr-unknown-unknown -verify -fsyntax-only
2struct a { int b; };
3
4struct a test __attribute__((signal)); // expected-warning {{'signal' attribute only applies to functions}}
5
6__attribute__((signal(12))) void foo(void) { } // expected-error {{'signal' attribute takes no arguments}}
7
8__attribute__((signal)) void food() {}