brintos

brintos / llvm-project-archived public Read only

0
0
Text · 344 B · 0348b9a Raw
10 lines · cpp
1// RUN: %clang_cc1 -verify -std=c++11 -fsyntax-only %s2 3[[noreturn]] void throw_int() {4  throw int(); // expected-error {{cannot use 'throw' with exceptions disabled}}5}6 7void throw_int_wrapper() {8  [[clang::musttail]] return throw_int(); // expected-error {{'clang::musttail' attribute may not be used with no-return-attribute functions}}9}10