summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/defaulted10.C
blob: 64fa5f019309205e547f2ac4fd79fa8baf27fb80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/40381
// { dg-options "-std=gnu++0x" }

struct A
{
  template<typename T> void foo(T) = delete; // { dg-error "previously|declared" }
};

template<typename T> void A::foo(T) {} // { dg-error "redefinition" }

void bar()
{
  A().foo(0);			// { dg-error "use" }
}