brintos

brintos / llvm-project-archived public Read only

0
0
Text · 434 B · 4dcd993 Raw
9 lines · cpp
1// RUN: %clang_cc1 -std=c++2a -x c++ %s -verify2 3// Test parsing of constraint-expressions in cases where the grammar is4// ambiguous with the expectation that the longest token sequence which matches5// the syntax is consumed without backtracking.6 7// type-specifier-seq in conversion-type-id8template <typename T> requires T::operator short9unsigned int foo(); // expected-error {{a type specifier is required for all declarations}}