Douglas Gregor | 247baca | 2009-06-13 06:59:07 +0000 | [diff] [blame] | 1 | // 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 | |
| 8 | template<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. |
| 12 | template<template<class T> class, |
| 13 | template<class T> class> |
| 14 | class B1noshadow; |