summaryrefslogtreecommitdiffstats
path: root/tests/cxx/associated_include.cc
blob: 3f48bd618a2e3b39bd36bb2bc9940efd0be871a8 (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
27
28
29
30
31
//===--- associated_include.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.
//
//===----------------------------------------------------------------------===//

// Tests that if we remove an include from an 'associated' .h file, we
// add it to the .cc file, but if we keep an include in an
// 'associated' .h file, we don't try to add it to the .cc file.

#include "tests/cxx/associated_include.h"

IndirectClass ic;
AssociatedIncludeClass aic;


/**** IWYU_SUMMARY

tests/cxx/associated_include.cc should add these lines:
#include "tests/cxx/indirect.h"

tests/cxx/associated_include.cc should remove these lines:

The full include-list for tests/cxx/associated_include.cc:
#include "tests/cxx/associated_include.h"
#include "tests/cxx/indirect.h"  // for IndirectClass

***** IWYU_SUMMARY */