Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
9901c57806f7e36736ed1616e6ab3eebcc99b78c
/
.
/
test
/
Parser
/
namespaces.cpp
blob: b8c7819a019f3399a0475e77a185d4c6c11936e6 [
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}}
}