1// RUN: %check_clang_tidy -expect-clang-tidy-error %s misc-unused-using-decls %t
2
3namespace n {
4class C;
5}
6
7using n::C;
8
9void f() {
10 for (C *p : unknown()) {}
11 // CHECK-MESSAGES: :[[@LINE-1]]:15: error: use of undeclared identifier 'unknown' [clang-diagnostic-error]
12}
13

source code of clang-tools-extra/test/clang-tidy/checkers/misc/unused-using-decls-errors.cpp