llvm-project/clang/test/Parser/switch-typo-correction.cpp

10 lines
283 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
namespace c { double xxx; } // expected-note{{'c::xxx' declared here}}
namespace d { float xxx; }
namespace z { namespace xxx {} }
void crash() {
switch (xxx) {} // expected-error{{use of undeclared identifier 'xxx'; did you mean }}
}