aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/default-assignment-operator.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-04-23 02:20:12 +0000
committerAnders Carlsson <andersca@mac.com>2010-04-23 02:20:12 +0000
commitd1aa800a19c956c72319025dd302ae78ed47f9ee (patch)
tree2d6c55ac8fdca2f0f3646dd06429f4640e03acef /test/SemaCXX/default-assignment-operator.cpp
parentddfb75f22d89c773ade4fa0df1e3a99d8b125d40 (diff)
Change the 'declared at' diagnostic to say 'declared here'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102163 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/default-assignment-operator.cpp')
-rw-r--r--test/SemaCXX/default-assignment-operator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/SemaCXX/default-assignment-operator.cpp b/test/SemaCXX/default-assignment-operator.cpp
index d9cb6fc8e5..81e7059257 100644
--- a/test/SemaCXX/default-assignment-operator.cpp
+++ b/test/SemaCXX/default-assignment-operator.cpp
@@ -2,14 +2,14 @@
class Base { // expected-error {{cannot define the implicit default assignment operator for 'Base', because non-static reference member 'ref' can't use default assignment operator}} \
// expected-warning{{class 'Base' does not declare any constructor to initialize its non-modifiable members}}
- int &ref; // expected-note {{declared at}} \
+ int &ref; // expected-note {{declared here}} \
// expected-note{{reference member 'ref' will never be initialized}}
};
class X : Base { // // expected-error {{cannot define the implicit default assignment operator for 'X', because non-static const member 'cint' can't use default assignment operator}}
public:
X();
- const int cint; // expected-note {{declared at}}
+ const int cint; // expected-note {{declared here}}
};
struct Y : X {
@@ -74,7 +74,7 @@ void i() {
class E1 { // expected-error{{cannot define the implicit default assignment operator for 'E1', because non-static const member 'a' can't use default assignment operator}}
public:
- const int a; // expected-note{{declared at}}
+ const int a; // expected-note{{declared here}}
E1() : a(0) {}
};