1// RUN: %check_clang_tidy -std=c++20 %s bugprone-exception-escape %t -- \
2// RUN: -- -fexceptions -Wno-everything
3
4namespace GH104457 {
5
6consteval int consteval_fn(int a) {
7 if (a == 0)
8 throw 1;
9 return a;
10}
11
12int test() noexcept { return consteval_fn(a: 1); }
13
14} // namespace GH104457
15

source code of clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape-consteval.cpp