repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix the clang-wpa example.
[clang.git]
/
test
/
Parser
/
namespaces.cpp
blob
b8c7819a019f3399a0475e77a185d4c6c11936e6
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3
// PR6596
4
namespace
g
{
enum
{
o
=
0
}; }
5
6
void
foo
() {
7
namespace
a
{
typedef g
::
o o
; }
// expected-error{{namespaces can only be defined in global or namespace scope}}
8
}