summaryrefslogtreecommitdiff
path: root/clang/test/Parser/switch-typo-correction.cpp
blob: 95d610b9cdd257546f3c25b0b46477f676d979f5 (plain)
1
2
3
4
5
6
7
8
9
// 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'}}
}