include-what-you-use/tests/cxx/header_near.cc

28 lines
818 B
C++

//===--- header_near.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.
//
//===----------------------------------------------------------------------===//
// Not including as "tests/cxx/header_near.h" is done on purpose. We are actually
// testing that iwyu doesn't offer to #include "tests/cxx/header_near.h" in addition
// to existing #include "header_near.h"
//
// The same for "indirect.h" - need to test both associated and usual includes.
#include "header_near.h"
#include "indirect.h"
Foo::Foo() {
IndirectClass ic;
}
/**** IWYU_SUMMARY
(tests/cxx/header_near.cc has correct #includes/fwd-decls)
***** IWYU_SUMMARY */