From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/Index/overrides.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 clang/test/Index/overrides.cpp (limited to 'clang/test/Index/overrides.cpp') diff --git a/clang/test/Index/overrides.cpp b/clang/test/Index/overrides.cpp new file mode 100644 index 0000000..698b256 --- /dev/null +++ b/clang/test/Index/overrides.cpp @@ -0,0 +1,20 @@ +struct A { + virtual void f(int); +}; + +struct B { + virtual void f(int); + virtual void g(); +}; + +struct C : B, A { + virtual void g(); +}; + +struct D : C { + virtual void f(int); +}; + +// RUN: c-index-test -test-load-source local %s | FileCheck %s +// CHECK: overrides.cpp:11:16: CXXMethod=g:11:16 (virtual) [Overrides @7:16] Extent=[11:3 - 11:19] +// CHECK: overrides.cpp:15:16: CXXMethod=f:15:16 (virtual) [Overrides @2:16, @6:16] Extent=[15:3 - 15:22] -- cgit v1.2.3