c++: Add test for PR 68061.

PR c++/68061
	* g++.dg/concepts/attrib1.C: New.
This commit is contained in:
Jason Merrill 2020-02-15 15:11:01 +01:00
parent 1e166191ef
commit acff02ef1f

View File

@ -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);