summaryrefslogtreecommitdiffstats
path: root/clang/test
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
commit1576850a7636fd7b4b77ea31762b58fb140ac969 (patch)
tree2718cc9c124377beefeac638ef950255e9462297 /clang/test
parentbf5fff5fbba7aa9e4815607f4cbc7587372eda08 (diff)
downloadbcm5719-llvm-1576850a7636fd7b4b77ea31762b58fb140ac969.tar.gz
bcm5719-llvm-1576850a7636fd7b4b77ea31762b58fb140ac969.zip
fix PR5500: clang fails to parse inline asm with :: in C++ mode
llvm-svn: 91802
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Parser/cxx-stmt.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-stmt.cpp b/clang/test/Parser/cxx-stmt.cpp
index 3fd3e256a87..fdd573e6bfa 100644
--- a/clang/test/Parser/cxx-stmt.cpp
+++ b/clang/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");
+}
OpenPOWER on IntegriCloud