xref: /minix3/external/bsd/llvm/dist/clang/test/ASTMerge/Inputs/namespace2.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // Merge success
2*f4a2713aSLionel Sambuc namespace N1 {
3*f4a2713aSLionel Sambuc   extern int x0;
4*f4a2713aSLionel Sambuc }
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc // Merge multiple namespaces
7*f4a2713aSLionel Sambuc namespace N2 {
8*f4a2713aSLionel Sambuc   extern int x;
9*f4a2713aSLionel Sambuc }
10*f4a2713aSLionel Sambuc namespace N2 {
11*f4a2713aSLionel Sambuc   extern float y;
12*f4a2713aSLionel Sambuc }
13*f4a2713aSLionel Sambuc 
14*f4a2713aSLionel Sambuc // Merge namespace with conflict
15*f4a2713aSLionel Sambuc namespace N3 {
16*f4a2713aSLionel Sambuc   extern double z;
17*f4a2713aSLionel Sambuc }
18