summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/ms-inline-asm.c
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-08-15 21:03:27 +0000
committerChad Rosier <mcrosier@apple.com>2012-08-15 21:03:27 +0000
commitaa7c1cb5f8b2de3f4d77ce0e0d5d94dc40768a47 (patch)
tree5b5783ff332c27eb927e8aa9f5c539a0ef86c3d0 /clang/test/Parser/ms-inline-asm.c
parentd63f1f5a9c75c33cb36e784a1fd9331112ae75bc (diff)
downloadbcm5719-llvm-aa7c1cb5f8b2de3f4d77ce0e0d5d94dc40768a47.tar.gz
bcm5719-llvm-aa7c1cb5f8b2de3f4d77ce0e0d5d94dc40768a47.zip
[ms-inline asm] MSVC parses multiple __asm statements on a single line as one
statement. For example, if (x) __asm out dx, ax __asm out dx, ax results in a single inline asm statement (i.e., both "out dx, ax" statements are predicated on if(x)). llvm-svn: 161986
Diffstat (limited to 'clang/test/Parser/ms-inline-asm.c')
-rw-r--r--clang/test/Parser/ms-inline-asm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Parser/ms-inline-asm.c b/clang/test/Parser/ms-inline-asm.c
index 6820f3e642d..5326ce4d241 100644
--- a/clang/test/Parser/ms-inline-asm.c
+++ b/clang/test/Parser/ms-inline-asm.c
@@ -28,10 +28,10 @@ int t7() {
}
}
void t8() {
- __asm nop __asm nop __asm nop // expected-warning {{MS-style inline assembly is not supported}} expected-warning {{MS-style inline assembly is not supported}} expected-warning {{MS-style inline assembly is not supported}}
+ __asm nop __asm nop __asm nop // expected-warning {{MS-style inline assembly is not supported}}
}
void t9() {
- __asm nop __asm nop ; __asm nop // expected-warning {{MS-style inline assembly is not supported}} expected-warning {{MS-style inline assembly is not supported}}
+ __asm nop __asm nop ; __asm nop // expected-warning {{MS-style inline assembly is not supported}}
}
int t_fail() { // expected-note {{to match this}}
__asm
OpenPOWER on IntegriCloud