[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Sema / declspec-naked.c
blobad40941a5f002e907e1c3d5e9eaf2366696bd11e
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
6 #endif
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'}}
11 #endif