6 // Lots of vertical space to make the error line match up with the line of the
7 // expected line in the source file.
8 namespace warn_in_header_in_global_context {}
9 using namespace warn_in_header_in_global_context;
11 // While we want to error on the previous using directive, we don't when we are
13 namespace dont_warn_here {
14 using namespace warn_in_header_in_global_context;
17 // We should warn in toplevel extern contexts.
18 namespace warn_inside_linkage {}
20 using namespace warn_inside_linkage;
23 // This is really silly, but we should warn on it:
27 using namespace warn_inside_linkage;
32 // But we shouldn't warn in extern contexts inside namespaces.
33 namespace dont_warn_here {
35 using namespace warn_in_header_in_global_context;
39 // We also shouldn't warn in case of functions.
41 using namespace warn_in_header_in_global_context;
45 namespace macronamespace {}
46 #define USING_MACRO using namespace macronamespace;
48 // |using namespace| through a macro should warn if the instantiation is in a