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:
Lang Hames 2017-07-07 21:51:11 +00:00
parent 6cf872658d
commit 4c2bf23e7c
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,9 @@
class Base {
public:
virtual void foo() {}
};
class Derived : public Base {
public:
void foo() override {}
};

View File

@ -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;
}