// RUN: %clang_cc1 -emit-llvm-only -verify %s
// This lame little test was ripped straight from the standard.
namespace{int i;// expected-note {{candidate}}
}voidtest0(){ i++;}namespaceA{namespace{int i;// expected-note {{candidate}}
int j;}voidtest1(){ i++;}}usingnamespace A;voidtest2(){
i++;// expected-error {{reference to 'i' is ambiguous}}
A::i++;
j++;}// Test that all anonymous namespaces in a translation unit are
// considered the same context.
namespace{classTest3{};// expected-note {{previous definition}}
}namespace{classTest3{};// expected-error {{redefinition of 'Test3'}}
}namespacetest4{namespace{classTest4{};// expected-note {{previous definition}}
}namespace{classTest4{};// expected-error {{redefinition of 'Test4'}}
}}