1// RUN: %clang_cc1 %s -verify -fsyntax-only
2
3int a __attribute__((naked)); // expected-warning {{'naked' attribute only applies to functions}}
4
5__attribute__((naked)) int t0(void) {
6  __asm__ volatile("mov r0, #0");
7}
8
9void t1() __attribute__((naked));
10
11void t2() __attribute__((naked(2))); // expected-error {{attribute takes no arguments}}
12
13