[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Sema / pr30372.c
blob87c1c1bc9342c7156deb6f1f4e8535c1fab7239b
1 // REQUIRES: x86-registered-target
2 // 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++
4 // Check that the parser catching an 'error' from forward declaration of "location" does not lexer out it's subsequent declaration.
6 void foo() {
7 __asm {
8 jl location
9 location:
10 ret