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

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

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