summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/new5.C
blob: a2c560181cfac0230cc3448024b365829d4b2949 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/27210

template <class foo> class junk {
  void bar(int a)
  {
    unsigned char *c = new unsigned char[a*sizeof(foo)];
  }
};