diff options
author | Chad Rosier <mcrosier@apple.com> | 2013-05-24 18:32:55 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2013-05-24 18:32:55 +0000 |
commit | b9aff1edb38c43c57650dd7236dd10a659aa970f (patch) | |
tree | bb5b453b070f3d813b8c7e3fed32e7738cd14ca6 /clang/test/CodeGen/ms-inline-asm.cpp | |
parent | f2e021233c044fbc183fc67d8f14bdb4d9dad672 (diff) | |
download | bcm5719-llvm-b9aff1edb38c43c57650dd7236dd10a659aa970f.tar.gz bcm5719-llvm-b9aff1edb38c43c57650dd7236dd10a659aa970f.zip |
[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
Diffstat (limited to 'clang/test/CodeGen/ms-inline-asm.cpp')
-rw-r--r-- | clang/test/CodeGen/ms-inline-asm.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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 + } +} |