projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55b0653
)
Introduce inline assembly parsing test is PR30372.
author
Nirav Dave
<niravd@google.com>
Fri, 16 Sep 2016 17:42:02 +0000
(17:42 +0000)
committer
Nirav Dave
<niravd@google.com>
Fri, 16 Sep 2016 17:42:02 +0000
(17:42 +0000)
llvm-svn: 281753
clang/test/Sema/pr30372.c
[new file with mode: 0644]
patch
|
blob
diff --git a/clang/test/Sema/pr30372.c
b/clang/test/Sema/pr30372.c
new file mode 100644
(file)
index 0000000..
e10fa2c
--- /dev/null
+++ b/
clang/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
+ }
+}