summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/dtor4.C
blob: 729ee2fa130dd2282b7529468abf8efede5f4513 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do compile }
// Contributed by Paul Koning <pkoning at equallogic dot com>
// PR c++/15947: Accept destructor as template in qualified-id

template <int N> struct X {
  ~X();
};

template <int N>
X<N>::~X<N>(){}