summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-decl.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard@metafoo.co.uk>2019-11-20 11:58:34 -0800
committerRichard Smith <richard@metafoo.co.uk>2019-11-20 11:59:58 -0800
commitfd8d9155a997ab0f3ef3d7dff1c56efc9b692bfe (patch)
tree80fde7354072c82ec0d953b92bce39406b957d73 /clang/test/Parser/cxx-decl.cpp
parent6de45772e0910bf7fa626e5493a2798b071eb26c (diff)
downloadbcm5719-llvm-fd8d9155a997ab0f3ef3d7dff1c56efc9b692bfe.tar.gz
bcm5719-llvm-fd8d9155a997ab0f3ef3d7dff1c56efc9b692bfe.zip
Fix parser bug that permitted 'private' as a (no-op) decl-specifier even outside OpenCL.
Diffstat (limited to 'clang/test/Parser/cxx-decl.cpp')
-rw-r--r--clang/test/Parser/cxx-decl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-decl.cpp b/clang/test/Parser/cxx-decl.cpp
index c60e42f28ee..a868904bb36 100644
--- a/clang/test/Parser/cxx-decl.cpp
+++ b/clang/test/Parser/cxx-decl.cpp
@@ -6,6 +6,8 @@ const char const *x10; // expected-error {{duplicate 'const' declaration specifi
int x(*g); // expected-error {{use of undeclared identifier 'g'}}
+private int cplusplus_is_not_opencl; // expected-error {{expected unqualified-id}}
+
struct Type {
int Type;
};
OpenPOWER on IntegriCloud