[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCXX / PR76631.cpp
blob947fa3fc2635e610e51844b5515df135ebbb9c17
1 // RUN: %clang_cc1 -verify -std=c++11 -fsyntax-only %s
3 [[noreturn]] void throw_int() {
4 throw int(); // expected-error {{cannot use 'throw' with exceptions disabled}}
7 void throw_int_wrapper() {
8 [[clang::musttail]] return throw_int(); // expected-error {{'musttail' attribute may not be used with no-return-attribute functions}}