]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/template/operator10.C
Implement P0732R2, class types in non-type template parameters.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / template / operator10.C
CommitLineData
833be229 1// PR c++/30535
3784b33c 2// { dg-prune-output "note" }
833be229
PC
3
4struct A {};
5
4be5c72c 6template<A, typename T> int operator-(A, T); // { dg-error "class type" "" { target c++17_down } }
833be229
PC
7
8int i = A() - 0; // { dg-error "no match" }