[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / Parser / cxx-concepts-ambig-constraint-expr.cpp
blobf85cfcee5a202190a51a46400f1b47f85956b3e8
1 // RUN: %clang_cc1 -std=c++2a -x c++ %s -verify
3 // Test parsing of constraint-expressions in cases where the grammar is
4 // ambiguous with the expectation that the longest token sequence which matches
5 // the syntax is consumed without backtracking.
7 // type-specifier-seq in conversion-type-id
8 template <typename T> requires T::operator short
9 unsigned int foo(); // expected-error {{C++ requires a type specifier for all declarations}}