blob: 559b892d0fd2d97fd32edacbe0c117f493c90f09 [file] [log] [blame]
Douglas Gregor247baca2009-06-13 06:59:07 +00001// RUN: clang-cc -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;