From 700ce64db453624d2a3f2d34d25207c97b2b064f Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Thu, 16 Aug 2012 22:25:38 +0000 Subject: [ms-inline asm] Add a helper function, isMSAsmKeyword(). These require special handling, which we don't currently handle. This is being put in place to ensure we don't do invalid symbol table lookups or try to parse invalid assembly. The test cases just makes sure the latter isn't happening. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162050 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/ms-inline-asm.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'test/CodeGen/ms-inline-asm.c') diff --git a/test/CodeGen/ms-inline-asm.c b/test/CodeGen/ms-inline-asm.c index 310fbd1e00..c140d60551 100644 --- a/test/CodeGen/ms-inline-asm.c +++ b/test/CodeGen/ms-inline-asm.c @@ -98,3 +98,23 @@ unsigned t11(void) { // CHECK: [[RET:%[a-zA-Z0-9]+]] = load i32* [[J]], align 4 // CHECK: ret i32 [[RET]] } + +void t12(void) { + __asm EVEN + __asm ALIGN +} + +void t13(void) { + __asm { + _emit 0x4A + _emit 0x43 + _emit 0x4B + } +} + +void t14(void) { + unsigned arr[10]; + __asm LENGTH arr ; sizeof(arr)/sizeof(arr[0]) + __asm SIZE arr ; sizeof(arr) + __asm TYPE arr ; sizeof(arr[0]) +} -- cgit v1.2.3-70-g09d2