1 // RUN: %clang_cc1 -emit-llvm-only -verify %s
3 // This lame little test was ripped straight from the standard.
5 int i
; // expected-note {{candidate}}
11 int i
; // expected-note {{candidate}}
20 i
++; // expected-error {{reference to 'i' is ambiguous}}
26 // Test that all anonymous namespaces in a translation unit are
27 // considered the same context.
29 class Test3
{}; // expected-note {{previous definition}}
32 class Test3
{}; // expected-error {{redefinition of 'Test3'}}
37 class Test4
{}; // expected-note {{previous definition}}
40 class Test4
{}; // expected-error {{redefinition of 'Test4'}}