summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/misc-unused-using-decls-errors.cpp
blob: 5eb380f7739bcadc21064e22a03eb902c7bd3881 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %check_clang_tidy %s misc-unused-using-decls %t

namespace n {
class C;
}

using n::C;

void f() {
  for (C *p : unknown()) {}
  // CHECK-MESSAGES: :[[@LINE-1]]:15: error: use of undeclared identifier 'unknown' [clang-diagnostic-error]
}
OpenPOWER on IntegriCloud