From b9aff1edb38c43c57650dd7236dd10a659aa970f Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Fri, 24 May 2013 18:32:55 +0000 Subject: [ms-inline asm] Don't diagnose an empty lookup for inline assmebly. This happen for labels in inline assembly that aren't in the lookup tables. E.g., __asm { a: jmp a } rdar://13983623 llvm-svn: 182659 --- clang/test/CodeGen/ms-inline-asm.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'clang/test/CodeGen/ms-inline-asm.cpp') diff --git a/clang/test/CodeGen/ms-inline-asm.cpp b/clang/test/CodeGen/ms-inline-asm.cpp index 8f824f9947b..8b9109d0194 100644 --- a/clang/test/CodeGen/ms-inline-asm.cpp +++ b/clang/test/CodeGen/ms-inline-asm.cpp @@ -103,3 +103,11 @@ void test5() { __asm mov x, eax // CHECK: call void asm sideeffect inteldialect "mov dword ptr $0, eax", "=*m,~{dirflag},~{fpsr},~{flags}"(i32* [[X]]) } + +// Just verify this doesn't emit an error. +void test6() { + __asm { + a: + jmp a + } +} -- cgit v1.2.3