From acff02ef1f4bc951ab7b4e3fdc117e0646d5d8f5 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sat, 15 Feb 2020 15:11:01 +0100 Subject: [PATCH] c++: Add test for PR 68061. PR c++/68061 * g++.dg/concepts/attrib1.C: New. --- gcc/testsuite/g++.dg/concepts/attrib1.C | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 gcc/testsuite/g++.dg/concepts/attrib1.C diff --git a/gcc/testsuite/g++.dg/concepts/attrib1.C b/gcc/testsuite/g++.dg/concepts/attrib1.C new file mode 100644 index 0000000..7563ea6 --- /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); -- 2.7.4