summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/default-assignment-operator.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2015-08-15 15:23:14 +0000
committerDavide Italiano <davide@freebsd.org>2015-08-15 15:23:14 +0000
commit32cbff7809fa6ddf713937a012fee9a1eacb95dc (patch)
tree104bd94b650be762e83f6daf4bb62a01b2360d86 /clang/test/SemaCXX/default-assignment-operator.cpp
parent8b2a031cff68afe9dbd0b15abbf9d7678adfa3e9 (diff)
downloadbcm5719-llvm-32cbff7809fa6ddf713937a012fee9a1eacb95dc.tar.gz
bcm5719-llvm-32cbff7809fa6ddf713937a012fee9a1eacb95dc.zip
[Sema] Be consistent about diagnostic wording: always use "cannot".
Discussed with Richard Smith. llvm-svn: 245162
Diffstat (limited to 'clang/test/SemaCXX/default-assignment-operator.cpp')
-rw-r--r--clang/test/SemaCXX/default-assignment-operator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/default-assignment-operator.cpp b/clang/test/SemaCXX/default-assignment-operator.cpp
index f202b61e109..e57a898f2f1 100644
--- a/clang/test/SemaCXX/default-assignment-operator.cpp
+++ b/clang/test/SemaCXX/default-assignment-operator.cpp
@@ -1,12 +1,12 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
-class Base { // expected-error {{cannot define the implicit copy assignment operator for 'Base', because non-static reference member 'ref' can't use copy assignment operator}} \
+class Base { // expected-error {{cannot define the implicit copy assignment operator for 'Base', because non-static reference member 'ref' cannot use copy assignment operator}} \
// expected-warning{{class 'Base' does not declare any constructor to initialize its non-modifiable members}}
int &ref; // expected-note {{declared here}} \
// expected-note{{reference member 'ref' will never be initialized}}
};
-class X : Base { // // expected-error {{cannot define the implicit copy assignment operator for 'X', because non-static const member 'cint' can't use copy assignment operator}} \
+class X : Base { // // expected-error {{cannot define the implicit copy assignment operator for 'X', because non-static const member 'cint' cannot use copy assignment operator}} \
// expected-note{{assignment operator for 'Base' first required here}}
public:
X();
@@ -73,7 +73,7 @@ void i() {
// Test5
-class E1 { // expected-error{{cannot define the implicit copy assignment operator for 'E1', because non-static const member 'a' can't use copy assignment operator}}
+class E1 { // expected-error{{cannot define the implicit copy assignment operator for 'E1', because non-static const member 'a' cannot use copy assignment operator}}
public:
const int a; // expected-note{{declared here}}
OpenPOWER on IntegriCloud