diff options
author | Steven Wu <stevenwu@apple.com> | 2015-01-16 23:05:28 +0000 |
---|---|---|
committer | Steven Wu <stevenwu@apple.com> | 2015-01-16 23:05:28 +0000 |
commit | cb0d13fc2337966a7e8738082309be1e215f83f3 (patch) | |
tree | 9c127e06ea4c5d5e9606a4d2c4f3808767face49 /clang/test/Parser/ms-inline-asm.c | |
parent | a34d04d35e72c9104c32e2f772b8bccab7f0cd33 (diff) | |
download | bcm5719-llvm-cb0d13fc2337966a7e8738082309be1e215f83f3.tar.gz bcm5719-llvm-cb0d13fc2337966a7e8738082309be1e215f83f3.zip |
Adding option -fno-inline-asm to disallow inline asm
Summary:
This patch add a new option to dis-allow all inline asm.
Any GCC style inline asm will be reported as an error.
Reviewers: rnk, echristo
Reviewed By: rnk, echristo
Subscribers: bob.wilson, rnk, echristo, rsmith, cfe-commits
Differential Revision: http://reviews.llvm.org/D6870
llvm-svn: 226340
Diffstat (limited to 'clang/test/Parser/ms-inline-asm.c')
-rw-r--r-- | clang/test/Parser/ms-inline-asm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Parser/ms-inline-asm.c b/clang/test/Parser/ms-inline-asm.c index 72c96c3715d..6dde5f5c0d6 100644 --- a/clang/test/Parser/ms-inline-asm.c +++ b/clang/test/Parser/ms-inline-asm.c @@ -1,5 +1,7 @@ // REQUIRES: x86-registered-target // RUN: %clang_cc1 %s -triple i386-apple-darwin10 -verify -fasm-blocks +// Disabling gnu inline assembly should have no effect on this testcase +// RUN: %clang_cc1 %s -triple i386-apple-darwin10 -verify -fasm-blocks -fno-gnu-inline-asm #define M __asm int 0x2c #define M2 int |