1 //===--- depopulated_h_file.cc - test input file for iwyu -----------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // The directly-included file contains only an inclusion of the file
11 // defining Foo. IWYU should recommend that inclusion be moved to this file.
12 #include "tests/cxx/depopulated_h_file.h"
13 
foo()14 void foo() {
15   Foo::Bar();
16 }
17 
18 /**** IWYU_SUMMARY
19 
20 tests/cxx/depopulated_h_file.cc should add these lines:
21 #include "tests/cxx/depopulated_h_file-i1.h"
22 
23 tests/cxx/depopulated_h_file.cc should remove these lines:
24 
25 The full include-list for tests/cxx/depopulated_h_file.cc:
26 #include "tests/cxx/depopulated_h_file.h"
27 #include "tests/cxx/depopulated_h_file-i1.h"  // for Foo
28 
29 ***** IWYU_SUMMARY */
30