summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/default-assignment-operator.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-06-13 03:34:55 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-06-13 03:34:55 +0000
commitf24e6e747b687b561db7a6bfe3331ee7ce206dfa (patch)
tree535dd61eff5d5c71ddc8cd454846a670c72ab612 /clang/test/SemaCXX/default-assignment-operator.cpp
parentd577fbbd1c9d6dab193d530fcd807efc3b3bc9ad (diff)
downloadbcm5719-llvm-f24e6e747b687b561db7a6bfe3331ee7ce206dfa.tar.gz
bcm5719-llvm-f24e6e747b687b561db7a6bfe3331ee7ce206dfa.zip
Fix some confusing diagnostic wording. s/implicit default/implicit/ if we're
not actually talking about a default constructor. llvm-svn: 183885
Diffstat (limited to 'clang/test/SemaCXX/default-assignment-operator.cpp')
-rw-r--r--clang/test/SemaCXX/default-assignment-operator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/SemaCXX/default-assignment-operator.cpp b/clang/test/SemaCXX/default-assignment-operator.cpp
index 668c6003666..7ef6f777852 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 default assignment operator for 'Base', because non-static reference member 'ref' can't use default assignment operator}} \
+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}} \
// 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 default assignment operator for 'X', because non-static const member 'cint' can't use default assignment operator}} \
+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}} \
// 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 default assignment operator for 'E1', because non-static const member 'a' can't use default assignment operator}}
+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}}
public:
const int a; // expected-note{{declared here}}
@@ -101,7 +101,7 @@ namespace ProtectedCheck {
X x;
};
- void f(Z z) { z = z; } // expected-note{{implicit default copy assignment operator}}
+ void f(Z z) { z = z; } // expected-note{{implicit copy assignment operator}}
}
OpenPOWER on IntegriCloud