Fix the clang-wpa example.
[clang.git] / test / Parser / namespaces.cpp
blobb8c7819a019f3399a0475e77a185d4c6c11936e6
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 // PR6596
4 namespace g { enum { o = 0 }; }
6 void foo() {
7 namespace a { typedef g::o o; } // expected-error{{namespaces can only be defined in global or namespace scope}}