summaryrefslogtreecommitdiffstats
path: root/tests/cxx/macro_location_tpl-d2.h
blob: 33da0bb47450b803620e19c7d659062aeb506169 (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
//===--- macro_location_tpl-d2.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.
//
//===----------------------------------------------------------------------===//

// Declare a couple of function templates whose specializations are used in a
// macro, to check that author intent hints attribute uses to the right place.
template <typename>
void expansion_template() = delete;
template <>
void expansion_template<int>();

template <typename>
void spelling_template() = delete;
template <>
void spelling_template<int>();

// As above, but for class templates.
template <typename>
struct ExpansionTemplate {
  void method() {
  }
};

template <typename>
struct SpellingTemplate {
  void method() {
  }
};