Sign in
llvm
/
clang-tools-extra
/
bdb3a2168510d1e0d554e82a1cdeaa611358e2a7
/
.
/
test
/
clang-tidy
/
misc-unused-using-decls-errors.cpp
blob: 5eb380f7739bcadc21064e22a03eb902c7bd3881 [
file
] [
log
] [
blame
]
// 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]
}