summaryrefslogtreecommitdiff
path: root/clang/test/ASTMerge/Inputs/namespace2.cpp
blob: 80429f700b13a0dff444e08d15130f5f8aadee16 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Merge success
namespace N1 {
  extern int x0;
}

// Merge multiple namespaces
namespace N2 {
  extern int x;
}
namespace N2 {
  extern float y;
}

// Merge namespace with conflict
namespace N3 {
  extern double z;
}