summaryrefslogtreecommitdiffstats
path: root/tests/cxx/no_fwd_decl_nested_class.cc
blob: a026e8ff15269adba488d8a0107abc4adf248165 (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
//===--- no_fwd_decl_nested_class.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 use a nested class, and we already have an
// #include for the outer class, we don't try to forward-declare the
// nested class anyway.  Usually we got this right, but sometimes
// wouldn't when then nested class had no definition.

#include "tests/cxx/no_fwd_decl_nested_class-d1.h"

DirectOuterClass doc;
void CallDOC(DirectOuterClass::NestedClass*) { }

/**** IWYU_SUMMARY

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

***** IWYU_SUMMARY */