summaryrefslogtreecommitdiffstats
path: root/tests/cxx/explicit_instantiation2-template_helpers.h
blob: 5068fe1c86c00428aa9b339896d3fa0d03af7a97 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
//=== explicit_instantiation2-template_helpers.h - 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.
//
//===----------------------------------------------------------------------===//
#ifndef INCLUDE_WHAT_YOU_USE_TESTS_CXX_EXPLICIT_INSTANTIATION2_TEMPLATE_HELPERS_H_
#define INCLUDE_WHAT_YOU_USE_TESTS_CXX_EXPLICIT_INSTANTIATION2_TEMPLATE_HELPERS_H_

template <class T>
class Template;

template <class T>
class FullUseArg {
  T t;
};
template <class T>
class FwdDeclUseArg {
  T* t;
};
template <class U = short, class T = Template<U>>
class TemplateAsDefaultFull {
  T t;
};
template <class U = short, class T = Template<U>>
class TemplateAsDefaultFwd {
  T* t;
};
template <template <class> class T>
class TemplateTemplateArgShortFull {
  T<short> t;
};
template <template <class> class T>
class TemplateTemplateArgShortFwd {
  T<short>* t;
};

#endif  // INCLUDE_WHAT_YOU_USE_TESTS_CXX_EXPLICIT_INSTANTIATION2_TEMPLATE_HELPERS_H_