]>
git.proxmox.com Git - rustc.git/blob - src/llvm/tools/clang/test/SemaCXX/warn-using-namespace-in-header.cpp
1 // RUN: %clang_cc1 -fsyntax-only -Wheader-hygiene -verify %s
3 #include "warn-using-namespace-in-header.h"
6 using namespace dont_warn
;
8 // Warning is actually in the header but only the cpp file gets scanned.
9 // expected-warning {{using namespace directive in global context in header}}
19 // Warn inside linkage specs too.
20 // expected-warning {{using namespace directive in global context in header}}
27 // expected-warning {{using namespace directive in global context in header}}
50 // expected-warning {{using namespace directive in global context in header}}
52 // |using namespace| through a macro shouldn't warn if the instantiation is in a