1 // RUN: %clang_cc1 -triple i686-unknown-windows-msvc -fsyntax-only -fdeclspec -verify %s
2 // RUN: %clang_cc1 -triple thumbv7-unknown-windows-msvc -fsyntax-only -fdeclspec -verify %s
3 // RUN: %clang_cc1 -triple x86_64-unknown-windows-msvc -fsyntax-only -fdeclspec -verify %s
4 #if defined(_M_IX86) || defined(_M_ARM)
5 // CHECK: expected-no-diagnostics
8 void __declspec(naked
) f(void) {}
9 #if !defined(_M_IX86) && !defined(_M_ARM)
10 // expected-error@-2{{'naked' attribute is not supported on 'x86_64'}}