summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/class.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-06-16 23:45:56 +0000
committerDouglas Gregor <dgregor@apple.com>2010-06-16 23:45:56 +0000
commit428119e39a5b2055b57ba1001acd4a885ac27c39 (patch)
treead0dc1e3a5277c9b75d43e18a1fc2be5319945f7 /clang/test/SemaCXX/class.cpp
parent842eb0905e8c4bc458007db179822d6ead5948b4 (diff)
downloadbcm5719-llvm-428119e39a5b2055b57ba1001acd4a885ac27c39.tar.gz
bcm5719-llvm-428119e39a5b2055b57ba1001acd4a885ac27c39.zip
When parsing cached C++ method declarations/definitions, save the
"previous token" location at the end of the class definition. This eliminates a badly-placed error + Fix-It when the ';' following a class definition is missing. Fixes <rdar://problem/8066414>. llvm-svn: 106175
Diffstat (limited to 'clang/test/SemaCXX/class.cpp')
-rw-r--r--clang/test/SemaCXX/class.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/class.cpp b/clang/test/SemaCXX/class.cpp
index b5cecbcf937..9d9508b8ef4 100644
--- a/clang/test/SemaCXX/class.cpp
+++ b/clang/test/SemaCXX/class.cpp
@@ -159,3 +159,9 @@ namespace PR7196 {
}
};
}
+
+namespace rdar8066414 {
+ class C {
+ C() {}
+ } // expected-error{{expected ';' after class}}
+}
OpenPOWER on IntegriCloud