summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/issue150.cpp
blob: 647df2cc0b7d66e5231e36960191388715af7f2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -fsyntax-only -verify %s

// Core issue 150: Template template parameters and default arguments

namespace PR9353 {
  template<class _T, class Traits> class IM;

  template <class T, class Trt, 
            template<class _T, class Traits = int> class IntervalMap>
  void foo(IntervalMap<T,Trt>* m) { typedef IntervalMap<int> type; }

  void f(IM<int, int>* m) { foo(m); }
}
OpenPOWER on IntegriCloud