1// RUN: %check_clang_tidy -std=c++98 %s modernize-use-override %t
2
3struct Base {
4 virtual ~Base() {}
5 virtual void a();
6 virtual void b();
7};
8
9struct SimpleCases : public Base {
10public:
11 virtual ~SimpleCases();
12 // CHECK-FIXES: {{^}} virtual ~SimpleCases();
13
14 void a();
15 // CHECK-FIXES: {{^}} void a();
16
17 virtual void b();
18 // CHECK-FIXES: {{^}} virtual void b();
19};
20

source code of clang-tools-extra/test/clang-tidy/checkers/modernize/use-override-cxx98.cpp