xref: /minix3/external/bsd/llvm/dist/clang/test/ASTMerge/Inputs/class-template1.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc template<typename T>
2*f4a2713aSLionel Sambuc struct X0;
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc template<int I>
5*f4a2713aSLionel Sambuc struct X1;
6*f4a2713aSLionel Sambuc 
7*f4a2713aSLionel Sambuc template<int I>
8*f4a2713aSLionel Sambuc struct X2;
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc template<int I>
11*f4a2713aSLionel Sambuc struct X3;
12*f4a2713aSLionel Sambuc 
13*f4a2713aSLionel Sambuc template<template<int I> class>
14*f4a2713aSLionel Sambuc struct X4;
15*f4a2713aSLionel Sambuc 
16*f4a2713aSLionel Sambuc template<template<long> class>
17*f4a2713aSLionel Sambuc struct X5;
18*f4a2713aSLionel Sambuc 
19*f4a2713aSLionel Sambuc template<typename>
20*f4a2713aSLionel Sambuc struct X6;
21*f4a2713aSLionel Sambuc 
22*f4a2713aSLionel Sambuc extern X0<int> *x0i;
23*f4a2713aSLionel Sambuc extern X0<long> *x0l;
24*f4a2713aSLionel Sambuc extern X0<float> *x0r;
25*f4a2713aSLionel Sambuc 
26*f4a2713aSLionel Sambuc template<>
27*f4a2713aSLionel Sambuc struct X0<char> {
28*f4a2713aSLionel Sambuc   int member;
29*f4a2713aSLionel Sambuc };
30*f4a2713aSLionel Sambuc 
31*f4a2713aSLionel Sambuc template<>
32*f4a2713aSLionel Sambuc struct X0<wchar_t> {
33*f4a2713aSLionel Sambuc   int member;
34*f4a2713aSLionel Sambuc };
35