xref: /llvm-project/clang/test/SemaCXX/PR76631.cpp (revision 2fe5b157189906cac86c300f1a4c89614087c0f4)
1 // RUN: %clang_cc1 -verify -std=c++11 -fsyntax-only %s
2 
throw_int()3 [[noreturn]] void throw_int() {
4   throw int(); // expected-error {{cannot use 'throw' with exceptions disabled}}
5 }
6 
throw_int_wrapper()7 void throw_int_wrapper() {
8   [[clang::musttail]] return throw_int(); // expected-error {{'musttail' attribute may not be used with no-return-attribute functions}}
9 }
10