Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CXX / temp / temp.param / p1.cpp
blobe9a978961769c39aa2e3e48c6f3708478f57f91d
1 // Suppress 'no run line' failure.
2 // RUN: %clang_cc1 -fsyntax-only -verify %s
4 template<template<> class C> class D; // expected-error{{template template parameter must have its own template parameters}}
7 struct A {};
8 template<class M,
9 class T = A, // expected-note{{previous default template argument defined here}}
10 class C> // expected-error{{template parameter missing a default argument}}
11 class X0 {}; // expected-note{{template is declared here}}
12 X0<int> x0; // expected-error{{too few template arguments for class template 'X0'}}