Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CXX / temp / temp.param / p11.cpp
blob5af0c4e91b569873d3bb668d092150e9ad2e9f8a
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 template<typename> struct Y1;
3 template<typename, int> struct Y2;
5 template<class T1 = int, // expected-note{{previous default template argument defined here}}
6 class T2> // expected-error{{template parameter missing a default argument}}
7 class B1;
9 template<template<class> class = Y1, // expected-note{{previous default template argument defined here}}
10 template<class> class> // expected-error{{template parameter missing a default argument}}
11 class B1t;
13 template<int N = 5, // expected-note{{previous default template argument defined here}}
14 int M> // expected-error{{template parameter missing a default argument}}
15 class B1n;