summaryrefslogtreecommitdiffstats
path: root/tests/cxx/external_including_internal.cc
blob: 3406761eb7efbf9dd6f6fc050e50137431a3d872 (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
//===--- external_including_internal.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.
//
//===----------------------------------------------------------------------===//

// IWYU_ARGS: -I .

// Tests that when a non-internal file #includes an internal file,
// that we don't try to map the include back to ourself, and protects
// against a regression of a bug where we were both including a file
// in /internal/, and forward-declaring a symbol it provided.

#include "tests/cxx/internal/private.h"

InternalStruct is;
InternalStruct* isp;


/**** IWYU_SUMMARY

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

***** IWYU_SUMMARY */