brintos

brintos / llvm-project-archived public Read only

0
0
Text · 328 B · 78a8ec7 Raw
8 lines · cpp
1// RUN: %check_clang_tidy -expect-clang-tidy-error %s readability-isolate-declaration %t2 3int main(){4  int a, b5  // CHECK-MESSAGES: [[@LINE-1]]:3: warning: multiple declarations in a single statement reduces readability6  // CHECK-MESSAGES: [[@LINE-2]]:11: error: expected ';' at end of declaration [clang-diagnostic-error]7}8