blob: e040ca74cbfc224f7996910c78777e6e024ff56e [file] [log] [blame]
Douglas Gregord6a49bb2011-03-18 16:10:52 +00001// RUN: %clang_cc1 -fsyntax-only -Wheader-hygiene -verify %s
2
3#include "warn-using-namespace-in-header.h"
4
5namespace dont_warn {}
6using namespace dont_warn;
7
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}}
Douglas Gregor9172aa62011-03-26 22:25:30 +000010
11
12
13
14
15
16
17
18
19// Warn inside linkage specs too.
20// expected-warning {{using namespace directive in global context in header}}
21
22
23
24
25
26
27// expected-warning {{using namespace directive in global context in header}}