summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-class.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2013-12-09 05:25:47 +0000
committerSerge Pavlov <sepavloff@gmail.com>2013-12-09 05:25:47 +0000
commit1de515100ba4997fc211f73111c9a7e5469150b0 (patch)
tree7c6d432e8098b5dc6d2cda92abacfe954be090cd /clang/test/Parser/cxx-class.cpp
parentdc3e6d2c1ba57e3c0693f64c68c60b5b81d7f389 (diff)
downloadbcm5719-llvm-1de515100ba4997fc211f73111c9a7e5469150b0.tar.gz
bcm5719-llvm-1de515100ba4997fc211f73111c9a7e5469150b0.zip
Avoid extra error messages if method definition is inside function.
llvm-svn: 196757
Diffstat (limited to 'clang/test/Parser/cxx-class.cpp')
-rw-r--r--clang/test/Parser/cxx-class.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-class.cpp b/clang/test/Parser/cxx-class.cpp
index 5fac7972857..d4d8c449436 100644
--- a/clang/test/Parser/cxx-class.cpp
+++ b/clang/test/Parser/cxx-class.cpp
@@ -113,6 +113,16 @@ namespace PR13775 {
}
}
+class pr16989 {
+ void tpl_mem(int *) {
+ return;
+ class C2 {
+ void f();
+ };
+ void C2::f() {} // expected-error{{function definition is not allowed here}}
+ };
+};
+
// PR11109 must appear at the end of the source file
class pr11109r3 { // expected-note{{to match this '{'}}
public // expected-error{{expected ':'}} expected-error{{expected '}'}} expected-error{{expected ';' after class}}
OpenPOWER on IntegriCloud