Dylan McKay | e8232d7 | 2017-02-08 05:09:26 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -triple avr-unknown-unknown -verify -fsyntax-only |
2 | struct a { int b; }; | ||||
3 | |||||
4 | struct 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() {} |