Sign in
llvm
/
llvm-project
/
clang
/
e4866f916a76b3dff4ffceca57a56f9dbac29a40
/
.
/
test
/
Parser
/
switch-typo-correction.cpp
blob: 95d610b9cdd257546f3c25b0b46477f676d979f5 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -verify %s
namespace
c
{
double
xxx
;
}
namespace
d
{
float
xxx
;
}
namespace
z
{
namespace
xxx
{}
}
void
crash
()
{
switch
(
xxx
)
{}
// expected-error{{use of undeclared identifier 'xxx'}}
}