Mercurial > hg > CbC > CbC_llvm
view clang/test/Sema/declspec-naked.c @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -triple i686-unknown-windows-msvc -fsyntax-only -fdeclspec -verify %s // RUN: %clang_cc1 -triple thumbv7-unknown-windows-msvc -fsyntax-only -fdeclspec -verify %s // RUN: %clang_cc1 -triple x86_64-unknown-windows-msvc -fsyntax-only -fdeclspec -verify %s #if defined(_M_IX86) || defined(_M_ARM) // CHECK: expected-no-diagnostics #endif void __declspec(naked) f(void) {} #if !defined(_M_IX86) && !defined(_M_ARM) // expected-error@-2{{'naked' attribute is not supported on 'x86_64'}} #endif