1 // RUN: %clang_cc1 %s -verify -fsyntax-only 2 3 int 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 9 void t1() __attribute__((naked)); 10 11 void t2() __attribute__((naked(2))); // expected-error {{attribute takes no arguments}} 12 13