summaryrefslogtreecommitdiffstats
path: root/tests/cxx/unused_class_template_ctor.cc
blob: ff65c904cde534f4984633839509d5e32adc8f77 (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
//===--- unused_class_template_ctor.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 IWYU doesn't instantiate unused class template constructor
// because for certain template arguments some constructors can trigger Clang
// errors.

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

void foo() {
  int i = 10, j = 20;
  pair<int&, int&> p(i, j);
}

/**** IWYU_SUMMARY

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

***** IWYU_SUMMARY */