[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Parser / static_assert.cpp
blob4fe7d3cda7b214118a831978f9215b9ada5ffd92
1 // RUN: %clang_cc1 -fsyntax-only -triple=x86_64-linux -std=c++2a -verify=cxx2a %s
2 // RUN: %clang_cc1 -fsyntax-only -triple=x86_64-linux -std=c++2c -verify=cxx2c %s
4 static_assert(true, "" // cxx2a-warning {{'static_assert' with a user-generated message is a C++26 extension}} \
5 // cxx2a-note {{to match this '('}} cxx2c-note {{to match this '('}}
6 // cxx2a-error {{expected ')'}} cxx2c-error {{expected ')'}}