summaryrefslogtreecommitdiff
path: root/clang/test/ASTMerge/Inputs/namespace2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/ASTMerge/Inputs/namespace2.cpp')
-rw-r--r--clang/test/ASTMerge/Inputs/namespace2.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/ASTMerge/Inputs/namespace2.cpp b/clang/test/ASTMerge/Inputs/namespace2.cpp
new file mode 100644
index 0000000..80429f7
--- /dev/null
+++ b/clang/test/ASTMerge/Inputs/namespace2.cpp
@@ -0,0 +1,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;
+}