r214551 - MS inline asm: Add tests for LLVM r214468
Reid Kleckner
reid at kleckner.net
Fri Aug 1 13:23:03 PDT 2014
Author: rnk
Date: Fri Aug 1 15:23:03 2014
New Revision: 214551
URL: http://llvm.org/viewvc/llvm-project?rev=214551&view=rev
Log:
MS inline asm: Add tests for LLVM r214468
This used to assert.
Modified:
cfe/trunk/test/Sema/ms-inline-asm.c
Modified: cfe/trunk/test/Sema/ms-inline-asm.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/ms-inline-asm.c?rev=214551&r1=214550&r2=214551&view=diff
==============================================================================
--- cfe/trunk/test/Sema/ms-inline-asm.c (original)
+++ cfe/trunk/test/Sema/ms-inline-asm.c Fri Aug 1 15:23:03 2014
@@ -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!}}
+}
More information about the cfe-commits
mailing list