xref: /minix3/external/bsd/llvm/dist/clang/test/ASTMerge/Inputs/class-template2.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc template<class 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<long I>
8*f4a2713aSLionel Sambuc struct X2;
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc template<typename>
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<int I> class>
17*f4a2713aSLionel Sambuc struct X5;
18*f4a2713aSLionel Sambuc 
19*f4a2713aSLionel Sambuc template<template<int I> class>
20*f4a2713aSLionel Sambuc struct X6;
21*f4a2713aSLionel Sambuc 
22*f4a2713aSLionel Sambuc typedef int Integer;
23*f4a2713aSLionel Sambuc extern X0<Integer> *x0i;
24*f4a2713aSLionel Sambuc extern X0<float> *x0f;
25*f4a2713aSLionel Sambuc extern X0<double> *x0r;
26*f4a2713aSLionel Sambuc 
27*f4a2713aSLionel Sambuc template<>
28*f4a2713aSLionel Sambuc struct X0<char> {
29*f4a2713aSLionel Sambuc   int member;
30*f4a2713aSLionel Sambuc };
31*f4a2713aSLionel Sambuc 
32*f4a2713aSLionel Sambuc template<>
33*f4a2713aSLionel Sambuc struct X0<wchar_t> {
34*f4a2713aSLionel Sambuc   float member;
35*f4a2713aSLionel Sambuc };
36