diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/deleted6.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/deleted6.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/deleted6.C b/gcc/testsuite/g++.dg/cpp0x/deleted6.C new file mode 100644 index 0000000000..af25b505db --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/deleted6.C @@ -0,0 +1,9 @@ +// PR c++/58582 +// { dg-do compile { target c++11 } } + +struct A +{ + template<int> void foo() = delete; +}; + +template void A::foo<0>(); |