10 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3namespace c { double xxx; }4namespace d { float xxx; }5namespace z { namespace xxx {} }6 7void crash() {8 switch (xxx) {} // expected-error{{use of undeclared identifier 'xxx'}}9}10 1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3namespace c { double xxx; }4namespace d { float xxx; }5namespace z { namespace xxx {} }6 7void crash() {8 switch (xxx) {} // expected-error{{use of undeclared identifier 'xxx'}}9}10