summaryrefslogtreecommitdiffstats
path: root/tests/cxx/explicit_instantiation2-template_helpers.h
blob: 71c3679e847bf2d8865c9800f984969499ff68ed (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
41
42
43
44
45
46
47
48
//=== 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;
};

template <class T>
class ProvidedTemplate {};

template <class U = short, class T = ProvidedTemplate<U>>
class TemplateAsDefaultFullProvided {
  T t;
};

#endif  // INCLUDE_WHAT_YOU_USE_TESTS_CXX_EXPLICIT_INSTANTIATION2_TEMPLATE_HELPERS_H_