c++: Add test for PR 68061.
authorJason Merrill <jason@redhat.com>
Sat, 15 Feb 2020 14:11:01 +0000 (15:11 +0100)
committerJason Merrill <jason@redhat.com>
Sat, 15 Feb 2020 14:11:01 +0000 (15:11 +0100)
PR c++/68061
* g++.dg/concepts/attrib1.C: New.

gcc/testsuite/g++.dg/concepts/attrib1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/concepts/attrib1.C b/gcc/testsuite/g++.dg/concepts/attrib1.C
new file mode 100644 (file)
index 0000000..7563ea6
--- /dev/null
@@ -0,0 +1,6 @@
+// PR c++/68061
+// { dg-do compile { target c++11 } }
+
+template <class T>
+  requires true                        // { dg-error "requires" "" { target { ! concepts } } }
+[[deprecated]] void f(T);