brintos

brintos / llvm-project-archived public Read only

0
0
Text · 225 B · 95d610b Raw
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