mirror of https://github.com/microsoft/clang.git
Add testcase for r305850.
Accidentally left this out of the original commit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307444 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6cf872658d
commit
4c2bf23e7c
|
@ -0,0 +1,9 @@
|
||||||
|
class Base {
|
||||||
|
public:
|
||||||
|
virtual void foo() {}
|
||||||
|
};
|
||||||
|
|
||||||
|
class Derived : public Base {
|
||||||
|
public:
|
||||||
|
void foo() override {}
|
||||||
|
};
|
|
@ -0,0 +1,7 @@
|
||||||
|
// RUN: clang-import-test -dump-ast -import %S/Inputs/Hierarchy.cpp -expression %s | FileCheck %s
|
||||||
|
|
||||||
|
// CHECK: Overrides:{{.*}}Base::foo
|
||||||
|
|
||||||
|
void foo() {
|
||||||
|
Derived d;
|
||||||
|
}
|
Loading…
Reference in New Issue