r307444 - Add testcase for r305850.
Lang Hames via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 7 14:51:11 PDT 2017
Author: lhames
Date: Fri Jul 7 14:51:11 2017
New Revision: 307444
URL: http://llvm.org/viewvc/llvm-project?rev=307444&view=rev
Log:
Add testcase for r305850.
Accidentally left this out of the original commit.
Added:
cfe/trunk/test/Import/import-overrides/
cfe/trunk/test/Import/import-overrides/Inputs/
cfe/trunk/test/Import/import-overrides/Inputs/Hierarchy.cpp
cfe/trunk/test/Import/import-overrides/test.cpp
Added: cfe/trunk/test/Import/import-overrides/Inputs/Hierarchy.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Import/import-overrides/Inputs/Hierarchy.cpp?rev=307444&view=auto
==============================================================================
--- cfe/trunk/test/Import/import-overrides/Inputs/Hierarchy.cpp (added)
+++ cfe/trunk/test/Import/import-overrides/Inputs/Hierarchy.cpp Fri Jul 7 14:51:11 2017
@@ -0,0 +1,9 @@
+class Base {
+public:
+ virtual void foo() {}
+};
+
+class Derived : public Base {
+public:
+ void foo() override {}
+};
Added: cfe/trunk/test/Import/import-overrides/test.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Import/import-overrides/test.cpp?rev=307444&view=auto
==============================================================================
--- cfe/trunk/test/Import/import-overrides/test.cpp (added)
+++ cfe/trunk/test/Import/import-overrides/test.cpp Fri Jul 7 14:51:11 2017
@@ -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;
+}
More information about the cfe-commits
mailing list