Files
clang-p2996/clang/test/CXX/temp/temp.param/p13.cpp
Daniel Dunbar 8fbe78f6fc Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.
- This is designed to make it obvious that %clang_cc1 is a "test variable"
   which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it
   can be useful to redefine what gets run as 'clang -cc1' (for example, to set
   a default target).

llvm-svn: 91446
2009-12-15 20:14:24 +00:00

15 lines
545 B
C++

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