[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCXX / concept-fatal-error.cpp
blobc299b39fdeb2338545f51fdab09b6864ad0a8ceb
1 // RUN: not %clang_cc1 -fsyntax-only -std=c++20 -ferror-limit 1 -verify %s
3 template <class>
4 concept f = requires { 42; };
5 struct h {
6 // The missing semicolon will trigger an error and -ferror-limit=1 will make it fatal
7 // We test that we do not crash in such cases (#55401)
8 int i = requires { { i } f } // expected-error {{expected ';' at end of declaration list}}
9 // expected-error@* {{too many errros emitted}}