From: Reid Kleckner Date: Fri, 1 Aug 2014 20:23:03 +0000 (+0000) Subject: MS inline asm: Add tests for LLVM r214468 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3bd7cfdd7b077bb2f05f21f25f7865262f209b3;p=clang MS inline asm: Add tests for LLVM r214468 This used to assert. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214551 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/ms-inline-asm.c b/test/Sema/ms-inline-asm.c index e1d79c116c..d4227027d7 100644 --- a/test/Sema/ms-inline-asm.c +++ b/test/Sema/ms-inline-asm.c @@ -99,3 +99,7 @@ void t4() { __asm { mov eax, fs:[0].a } // expected-error {{Unable to lookup field reference!}} __asm { mov eax, fs:[0]. A.a } // expected-error {{Unexpected token type!}} } + +void test_operand_size() { + __asm { call word t4 } // expected-error {{Expected 'PTR' or 'ptr' token!}} +}