From dca2f8ee63c65cb27f791e5b2864d3f9e0adf3cb Mon Sep 17 00:00:00 2001 From: Nirav Dave Date: Fri, 16 Sep 2016 17:42:02 +0000 Subject: [PATCH] Introduce inline assembly parsing test is PR30372. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281753 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Sema/pr30372.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/Sema/pr30372.c diff --git a/test/Sema/pr30372.c b/test/Sema/pr30372.c new file mode 100644 index 0000000000..e10fa2c841 --- /dev/null +++ b/test/Sema/pr30372.c @@ -0,0 +1,12 @@ +// REQUIRES: x86-registered-target +// RUN: %clang_cc1 %s -triple i386-pc-windows-msvc18.0.0 -disable-free -fms-volatile -fms-extensions -fms-compatibility -fms-compatibility-version=18 -std=c++11 -x c++ + +// Check that the parser catching an 'error' from forward declaration of "location" does not lexer out it's subsequent declation. + +void foo() { + __asm { + jl location + location: + ret + } +} -- 2.40.0