1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3// The scope of atemplate-parameterextends from its point of
4// declaration until the end of its template. In particular, a
5// template-parameter can be used in the declaration of subsequent
6// template-parameters and their default arguments.
7
8template<class T, T* p, class U = T> class X { /* ... */ };
9// FIXME: template<class T> void f(T* p = new T);
10
11// Check for bogus template parameter shadow warning.
12template<template<class T> class,
13         template<class T> class>
14  class B1noshadow;
15