summaryrefslogtreecommitdiffstats
path: root/tests/cxx/non_transitive_include.cc
blob: 785c4e38ea766e0f6000b6e6ac4b86c7b16429f7 (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
//===--- non_transitive_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 when we run in --transitive_includes_only mode, we
// do not suggest that d2.h #include d1.h, even though it needs
// a symbol from there, because d1.h is not a file that d2.h can
// see transitively.

#include "tests/cxx/non_transitive_include-d1.h"
#include "tests/cxx/non_transitive_include-d2.h"

NonTransitiveIncludeD1 nti = nti_d2;


/**** IWYU_SUMMARY

(tests/cxx/non_transitive_include.cc has correct #includes/fwd-decls)

***** IWYU_SUMMARY */