summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/colon-colon-parentheses.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-12-19 02:40:19 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-12-19 02:40:19 +0000
commitd63db6ef1f23e597277005c9ba177184b0e4065e (patch)
treee442bf91fb59ded8e70b30daccc8ff0dab826b32 /clang/test/Parser/colon-colon-parentheses.cpp
parent5d54689bcaeeca8845c57418ab63d7cdd0a7e38c (diff)
downloadbcm5719-llvm-d63db6ef1f23e597277005c9ba177184b0e4065e.tar.gz
bcm5719-llvm-d63db6ef1f23e597277005c9ba177184b0e4065e.zip
Fix crash-on-invalid if a :: is followed by two or more open parentheses (and then something else).
llvm-svn: 256080
Diffstat (limited to 'clang/test/Parser/colon-colon-parentheses.cpp')
-rw-r--r--clang/test/Parser/colon-colon-parentheses.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/test/Parser/colon-colon-parentheses.cpp b/clang/test/Parser/colon-colon-parentheses.cpp
index e031ce2e904..b3db4fbed2f 100644
--- a/clang/test/Parser/colon-colon-parentheses.cpp
+++ b/clang/test/Parser/colon-colon-parentheses.cpp
@@ -22,9 +22,9 @@ void foo() {
}
#ifdef PR21815
-// expected-error@+4{{C++ requires a type specifier for all declarations}}
-// expected-error@+3{{expected unqualified-id}}
-// expected-error@+3{{expected expression}}
-// expected-error@+1{{expected ';' after top level declarator}}
-a (::(
+// expected-error@+2{{C++ requires a type specifier for all declarations}}
+// expected-error@+1{{expected unqualified-id}}
+a (::( ));
+
+::((c )); // expected-error{{expected unqualified-id}}
#endif
OpenPOWER on IntegriCloud