1762bb9d0ad20320b9f97a841dce57ba5e8e48b07Richard Smith// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s 23e4c6c4c79a03f5cb0c4671d7c282d623c6dc35eRichard Smith 33e4c6c4c79a03f5cb0c4671d7c282d623c6dc35eRichard Smithtemplate<typename> struct Y1; 43e4c6c4c79a03f5cb0c4671d7c282d623c6dc35eRichard Smithtemplate<typename, int> struct Y2; 53e4c6c4c79a03f5cb0c4671d7c282d623c6dc35eRichard Smith 63e4c6c4c79a03f5cb0c4671d7c282d623c6dc35eRichard Smithtemplate<class T1, class T2 = int> using B2 = T1; 73e4c6c4c79a03f5cb0c4671d7c282d623c6dc35eRichard Smithtemplate<class T1 = int, class T2> using B2 = T1; 83e4c6c4c79a03f5cb0c4671d7c282d623c6dc35eRichard Smith 93e4c6c4c79a03f5cb0c4671d7c282d623c6dc35eRichard Smithtemplate<template<class> class F, template<class> class G = Y1> using B2t = F<G<int>>; 103e4c6c4c79a03f5cb0c4671d7c282d623c6dc35eRichard Smithtemplate<template<class> class F = Y2, template<class> class G> using B2t = F<G<int>>; 113e4c6c4c79a03f5cb0c4671d7c282d623c6dc35eRichard Smith 123e4c6c4c79a03f5cb0c4671d7c282d623c6dc35eRichard Smithtemplate<int N, int M = 5> using B2n = Y2<int, N + M>; 133e4c6c4c79a03f5cb0c4671d7c282d623c6dc35eRichard Smithtemplate<int N = 5, int M> using B2n = Y2<int, N + M>; 14