diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-05-12 16:39:35 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-05-12 16:39:35 +0000 |
commit | c63d2c8469d6b96712b324f76b4af07e1852313f (patch) | |
tree | 5dadce03297f0232292d330f080f6b9346b1c1be /test/SemaCXX/default-assignment-operator.cpp | |
parent | a9f1bb19f75871481aa66316902bb10f4669e596 (diff) |
When we emit an error during the implicit definition of a special
member function (default constructor, copy constructor, copy
assignment operator, destructor), emit a note showing where that
implicit definition was required.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103619 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/default-assignment-operator.cpp')
-rw-r--r-- | test/SemaCXX/default-assignment-operator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/SemaCXX/default-assignment-operator.cpp b/test/SemaCXX/default-assignment-operator.cpp index 4b5531e0c8..668c600366 100644 --- a/test/SemaCXX/default-assignment-operator.cpp +++ b/test/SemaCXX/default-assignment-operator.cpp @@ -101,7 +101,8 @@ namespace ProtectedCheck { X x; }; - void f(Z z) { z = z; } // + void f(Z z) { z = z; } // expected-note{{implicit default copy assignment operator}} + } namespace MultiplePaths { |