1// RUN: %check_clang_tidy -expect-clang-tidy-error %s readability-isolate-declaration %t
2
3int main(){
4 int a, b
5 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: multiple declarations in a single statement reduces readability
6 // CHECK-MESSAGES: [[@LINE-2]]:11: error: expected ';' at end of declaration [clang-diagnostic-error]
7}
8

source code of clang-tools-extra/test/clang-tidy/checkers/readability/isolate-declaration-no-infinite-loop.cpp