brintos

brintos / llvm-project-archived public Read only

0
0
Text · 501 B · fb5b229 Raw
38 lines · cpp
1template<typename T>2struct X0 {3  T getValue(T arg) { return arg; }4};5 6template<int I>7struct X1;8 9template<int I>10struct X2;11 12template<int I>13struct X3;14 15template<template<int I> class>16struct X4;17 18template<template<long> class>19struct X5;20 21template<typename>22struct X6;23 24extern X0<int> *x0i;25extern X0<long> *x0l;26extern X0<float> *x0r;27 28template<>29struct X0<char> {30  int member;31  char getValue(char ch) { return static_cast<char>(member); }32};33 34template<>35struct X0<wchar_t> {36  int member;37};38