Nirav Dave | e5d4a6c | 2016-09-16 17:42:02 +0000 | [diff] [blame] | 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++ |
| 3 | |
Alexander Kornienko | 2a8c18d | 2018-04-06 15:14:32 +0000 | [diff] [blame] | 4 | // Check that the parser catching an 'error' from forward declaration of "location" does not lexer out it's subsequent declaration. |
Nirav Dave | e5d4a6c | 2016-09-16 17:42:02 +0000 | [diff] [blame] | 5 | |
| 6 | void foo() { |
| 7 | __asm { |
| 8 | jl location |
| 9 | location: |
| 10 | ret |
| 11 | } |
| 12 | } |