summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt/typo.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-01-07 00:26:25 +0000
committerDouglas Gregor <dgregor@apple.com>2010-01-07 00:26:25 +0000
commit43a0857631abb25f2095de6092f02a718d8df1d0 (patch)
tree9501fd8abb5e4a35671bc7c86d7cef78077377df /clang/test/FixIt/typo.cpp
parent6da83624e44a4066c31524d60d2226de55c698a0 (diff)
downloadbcm5719-llvm-43a0857631abb25f2095de6092f02a718d8df1d0.tar.gz
bcm5719-llvm-43a0857631abb25f2095de6092f02a718d8df1d0.zip
When we typo-correct a base class initializer, point to the base class
specifier that we corrected to. llvm-svn: 92878
Diffstat (limited to 'clang/test/FixIt/typo.cpp')
-rw-r--r--clang/test/FixIt/typo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/FixIt/typo.cpp b/clang/test/FixIt/typo.cpp
index ffeb18dde10..50c6d312b8c 100644
--- a/clang/test/FixIt/typo.cpp
+++ b/clang/test/FixIt/typo.cpp
@@ -35,7 +35,7 @@ bool test_string(std::string s) {
}
struct Base { };
-struct Derived : public Base {
+struct Derived : public Base { // expected-note{{base class 'struct Base' specified here}}
int member; // expected-note 3{{'member' declared here}}
Derived() : base(), // expected-error{{initializer 'base' does not name a non-static data member or base class; did you mean the base class 'Base'?}}
OpenPOWER on IntegriCloud