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