xref: /llvm-project/clang/test/CXX/temp/temp.param/p1.cpp (revision 0693defea9521e6bb0be6bf51fb2f14de7473197)
1595c9872SDaniel Dunbar // Suppress 'no run line' failure.
2a02bb37aSDouglas Gregor // RUN: %clang_cc1 -fsyntax-only -verify %s
3595c9872SDaniel Dunbar 
4a02bb37aSDouglas Gregor template<template<> class C> class D; // expected-error{{template template parameter must have its own template parameters}}
5a02bb37aSDouglas Gregor 
6a02bb37aSDouglas Gregor 
7*0693defeSDouglas Gregor struct A {};
8*0693defeSDouglas Gregor template<class M,
9*0693defeSDouglas Gregor          class T = A,  // expected-note{{previous default template argument defined here}}
10*0693defeSDouglas Gregor          class C> // expected-error{{template parameter missing a default argument}}
11*0693defeSDouglas Gregor class X0 {}; // expected-note{{template is declared here}}
12*0693defeSDouglas Gregor X0<int> x0; // expected-error{{too few template arguments for class template 'X0'}}
13