2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / deleted10.C
blob4fbee27c3336c3719f4bfc8d59a6f088ca35588c
1 // PR c++/60753
2 // { dg-do compile { target c++11 } }
4 template<class T> void foo (T);
6 template<> void foo<int> (int);
7 template<> void foo<int> (int) = delete;     // { dg-error "deleted" }
9 struct S
11   template<class T> void bar (T);
14 template<> void S::bar<int> (int);
15 template<> void S::bar<int> (int) = delete;  // { dg-error "deleted" }