From: Jason Merrill Date: Sat, 15 Feb 2020 14:11:01 +0000 (+0100) Subject: c++: Add test for PR 68061. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=acff02ef1f4bc951ab7b4e3fdc117e0646d5d8f5;p=gcc.git c++: Add test for PR 68061. PR c++/68061 * g++.dg/concepts/attrib1.C: New. --- diff --git a/gcc/testsuite/g++.dg/concepts/attrib1.C b/gcc/testsuite/g++.dg/concepts/attrib1.C new file mode 100644 index 00000000000..7563ea63390 --- /dev/null +++ b/gcc/testsuite/g++.dg/concepts/attrib1.C @@ -0,0 +1,6 @@ +// PR c++/68061 +// { dg-do compile { target c++11 } } + +template + requires true // { dg-error "requires" "" { target { ! concepts } } } +[[deprecated]] void f(T);