summaryrefslogtreecommitdiffstats
path: root/tests/cxx/inheriting_ctor.cc
blob: b91753bbf6a67145de995c11dd46f256df23b618 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//===--- inheriting_ctor.cc - test input file for iwyu --------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include "inheriting_ctor-d1.h"

// IWYU: Derived is defined in .*-i1.h
void func() { Derived d(1); }

/**** IWYU_SUMMARY

tests/cxx/inheriting_ctor.cc should add these lines:
#include "inheriting_ctor-i1.h"

tests/cxx/inheriting_ctor.cc should remove these lines:
- #include "inheriting_ctor-d1.h"  // lines XX-XX

The full include-list for tests/cxx/inheriting_ctor.cc:
#include "inheriting_ctor-i1.h"  // for Derived

***** IWYU_SUMMARY */