aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx-stmt.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-20 23:08:04 +0000
committerChris Lattner <sabre@nondot.org>2009-12-20 23:08:04 +0000
commit6405646cb649e4b4c6768b92d1fc83c175722f62 (patch)
tree964cd6ad8ae5046fc5a2e06155cb82288068e5a8 /test/Parser/cxx-stmt.cpp
parent64cb4757acbf10f0c702f17c4fe90f4b7aba3490 (diff)
fix PR5500: clang fails to parse inline asm with :: in C++ mode
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-stmt.cpp')
-rw-r--r--test/Parser/cxx-stmt.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Parser/cxx-stmt.cpp b/test/Parser/cxx-stmt.cpp
index 3fd3e256a8..fdd573e6bf 100644
--- a/test/Parser/cxx-stmt.cpp
+++ b/test/Parser/cxx-stmt.cpp
@@ -52,3 +52,9 @@ void f4() {
case Type: i = 7; break; // no error.
}
}
+
+// PR5500
+void f5() {
+ asm volatile ("":: :"memory");
+ asm volatile ("": ::"memory");
+}