aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/namespaces.cpp
blob: 6491cfd446b311ba15e956a1d8d42f266cb662eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// 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}}