1// RUN: %clang_cc1 -fsyntax-only -verify %s 2// expected-no-diagnostics 3 4// Template type parameters. 5typedef unsigned char T; 6template<typename T = T> struct X0 { }; 7template<> struct X0<unsigned char> { static const bool value = true; }; 8int array0[X0<>::value? 1 : -1]; 9 10// Non-type template parameters. 11const int N = 17; 12template<int N = N> struct X1 { }; 13template<> struct X1<17> { static const bool value = true; }; 14int array1[X1<>::value? 1 : -1]; 15 16// Template template parameters. 17template<template<class> class X0 = X0> struct X2 { }; 18template<> struct X2<X0> { static const bool value = true; }; 19int array2[X2<>::value? 1 : -1]; 20