llvm-project/clang/test/CXX/class.derived/class.virtual
Eli Friedman af65120bd3 Improve error for "override" + non-virtual func.
Consider something like the following:

struct X {
  virtual void foo(float x);
};
struct Y : X {
  void foo(double x) override;
};

The error is almost certainly that Y::foo() has the wrong signature,
rather than incorrect usage of the override keyword.  This patch
adds an appropriate diagnostic for that case.

Fixes <rdar://problem/14785106>.

llvm-svn: 190109
2013-09-05 23:51:03 +00:00
..
p2.cpp
p3-0x.cpp Improve error for "override" + non-virtual func. 2013-09-05 23:51:03 +00:00
p12.cpp