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