summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/conv2.C
blob: d668a54516177957449383c31223cd2afb14642f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }

template<class T>
class A {
public:
  operator const T*() const;
  const T* cast() const;
};

template<class T>
const T* A<T>::cast() const {
  return operator const T*();
}

template class A<char>;