diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/concepts/pr67595.C')
-rw-r--r-- | gcc/testsuite/g++.dg/concepts/pr67595.C | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/g++.dg/concepts/pr67595.C b/gcc/testsuite/g++.dg/concepts/pr67595.C index 7b5d712512e..7199e0517d4 100644 --- a/gcc/testsuite/g++.dg/concepts/pr67595.C +++ b/gcc/testsuite/g++.dg/concepts/pr67595.C @@ -1,10 +1,10 @@ -// { dg-do compile { target c++17 } } +// { dg-do compile { target c++17_only } } // { dg-options "-fconcepts" } -template <class X> concept bool allocatable = requires{{new X}->X * }; +template <class X> concept bool allocatable = requires{{new X}->X *; }; template <class X> concept bool semiregular = allocatable<X>; -template <class X> concept bool readable = requires{requires semiregular<X>}; -template <class> int weak_input_iterator = requires{{0}->readable}; +template <class X> concept bool readable = requires{requires semiregular<X>;}; +template <class> int weak_input_iterator = requires{{0}->readable;}; template <class X> bool input_iterator{weak_input_iterator<X>}; // { dg-warning "narrowing conversion" } template <class X> bool forward_iterator{input_iterator<X>}; template <class X> bool bidirectional_iterator{forward_iterator<X>}; |