xref: /llvm-project/clang/test/CXX/temp/temp.param/p10-0x.cpp (revision c6e68daac0fa6e77a89f3ca72f266a528503dd1c)
19ca5c425SRichard Smith // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2*c6e68daaSAndy Gibbs // expected-no-diagnostics
33f1b5d07SRichard Smith 
43f1b5d07SRichard Smith template<typename> struct Y1;
53f1b5d07SRichard Smith template<typename, int> struct Y2;
63f1b5d07SRichard Smith 
73f1b5d07SRichard Smith template<class T1, class T2 = int> using B2 = T1;
83f1b5d07SRichard Smith template<class T1 = int, class T2> using B2 = T1;
93f1b5d07SRichard Smith 
103f1b5d07SRichard Smith template<template<class> class F, template<class> class G = Y1> using B2t = F<G<int>>;
113f1b5d07SRichard Smith template<template<class> class F = Y2, template<class> class G> using B2t = F<G<int>>;
123f1b5d07SRichard Smith 
133f1b5d07SRichard Smith template<int N, int M = 5> using B2n = Y2<int, N + M>;
143f1b5d07SRichard Smith template<int N = 5, int M> using B2n = Y2<int, N + M>;
15