summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/new9.C
blob: 24e40ee23989b17533efcf7f92491861429cf214 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/46277

class ggRGBE {
public:
    ggRGBE();
};
template <class T> class ggIO
{
  void readbody(int);
  ggRGBE *scanline;
};
template <class T> void
ggIO<T>::readbody(int width)
{
  scanline = new ggRGBE[width];
}