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.
foo()4 void 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