11 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s3 4namespace A {5 namespace B { }6}7 8// CHECK: fix-it:"{{.*}}":{[[@LINE+1]]:7-[[@LINE+1]]:7}:"namespace "9using A::B; // expected-error{{using declaration cannot refer to a namespace}}10 // expected-note@-1 {{did you mean 'using namespace'?}}11