diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/operator8.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/operator8.C | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/operator8.C b/gcc/testsuite/g++.dg/template/operator8.C new file mode 100644 index 000000000..29d17b84b --- /dev/null +++ b/gcc/testsuite/g++.dg/template/operator8.C @@ -0,0 +1,6 @@ +//PR c++/27494 + +struct A +{ + template<operator+> void foo() {} // { dg-error "identifier|non-function|template arguments" } +}; |