summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/ms-inline-asm.c
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2017-04-07 15:13:47 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2017-04-07 15:13:47 +0000
commitb51bcaf2f027f0774749e31d5fff2e618b1ee0f2 (patch)
tree85951c0eb5d20c26cd0334bf8ad6777cb95d42ce /clang/test/Sema/ms-inline-asm.c
parent60d0e982f038ecb0b93e5896fd84988950977102 (diff)
downloadbcm5719-llvm-b51bcaf2f027f0774749e31d5fff2e618b1ee0f2.tar.gz
bcm5719-llvm-b51bcaf2f027f0774749e31d5fff2e618b1ee0f2.zip
Sema: prevent __declspec(naked) use on x64
MSDN (https://msdn.microsoft.com/en-us/library/h5w10wxs.aspx) indicates that `__declspec(naked)` is only permitted on x86 and ARM targets. Testing with cl does confirm this behaviour. Provide a warning for use of `__declspec(naked)` on x64. llvm-svn: 299774
Diffstat (limited to 'clang/test/Sema/ms-inline-asm.c')
-rw-r--r--clang/test/Sema/ms-inline-asm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/ms-inline-asm.c b/clang/test/Sema/ms-inline-asm.c
index abf10b67cce..952112ea8cf 100644
--- a/clang/test/Sema/ms-inline-asm.c
+++ b/clang/test/Sema/ms-inline-asm.c
@@ -1,5 +1,5 @@
// REQUIRES: x86-registered-target
-// RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -fms-extensions -fasm-blocks -Wno-microsoft -Wunused-label -verify -fsyntax-only
+// RUN: %clang_cc1 %s -triple i386-apple-darwin10 -fms-extensions -fasm-blocks -Wno-microsoft -Wunused-label -verify -fsyntax-only
void t1(void) {
__asm __asm // expected-error {{__asm used with no assembly instructions}}
OpenPOWER on IntegriCloud