2020-01-24 06:43:22 +08:00
|
|
|
// RUN: %clang_cc1 -std=c++2a -x c++ %s -verify
|
2015-06-25 08:23:39 +08:00
|
|
|
|
|
|
|
// Test parsing of constraint-expressions in cases where the grammar is
|
|
|
|
// ambiguous with the expectation that the longest token sequence which matches
|
|
|
|
// the syntax is consumed without backtracking.
|
|
|
|
|
|
|
|
// type-specifier-seq in conversion-type-id
|
2020-01-09 21:07:51 +08:00
|
|
|
template <typename T> requires T::operator short
|
|
|
|
unsigned int foo(); // expected-error {{C++ requires a type specifier for all declarations}}
|