summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/new6.C
blob: 4db068512bd9bf2a6dc5d95e6d6ead2fca9c0354 (plain)
1
2
3
4
5
6
7
// PR c++/27713
// { dg-do compile }

struct A
{
  template<int> friend void* operator new(__SIZE_TYPE__); // { dg-error "invalid template" }
};