blob: 6491cfd446b311ba15e956a1d8d42f266cb662eb [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -verify %s
// PR6596
namespace g { enum { o = 0 }; }
void foo() {
namespace a { typedef g::o o; } // expected-error{{namespaces can only be defined in global or namespace scope}}
}
// PR14085
namespace PR14085 {}
namespace = PR14085; // expected-error {{expected identifier}}