summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/deleted4.C
blob: 22439d45708b284598f6fde4bf155da8bba515f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/58582
// { dg-do compile { target c++11 } }

struct A
{
  template<int> void foo() = delete;
};

template<int> void A::foo() { int i; } // { dg-error "redefinition" }

template void A::foo<0>();