1// RUN: clang-tidy %s -checks=-*,readability-else-after-return --
2
3// We aren't concerned about the output here, just want to ensure clang-tidy doesn't crash.
4void foo() {
5#if 1
6 if (true) {
7 return;
8#else
9 {
10#endif
11 } else {
12 return;
13 }
14
15 if (true) {
16#if 1
17 return;
18 } else {
19#endif
20 return;
21 }
22}
23

source code of clang-tools-extra/test/clang-tidy/checkers/readability/else-after-return-pp-no-crash.cpp