aboutsummaryrefslogtreecommitdiff
path: root/test/Index/namespaced-base-ctor-init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/namespaced-base-ctor-init.cpp')
-rw-r--r--test/Index/namespaced-base-ctor-init.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Index/namespaced-base-ctor-init.cpp b/test/Index/namespaced-base-ctor-init.cpp
new file mode 100644
index 000000000000..2d60f7c6530a
--- /dev/null
+++ b/test/Index/namespaced-base-ctor-init.cpp
@@ -0,0 +1,10 @@
+namespace ns1 {
+struct Base {};
+struct Derived : Base {
+ Derived() : ns1::Base() {}
+};
+}
+
+// RUN: c-index-test -test-load-source all %s | FileCheck %s
+// CHECK: namespaced-base-ctor-init.cpp:4:15: NamespaceRef=ns1:1:11 Extent=[4:15 - 4:18]
+// CHECK: namespaced-base-ctor-init.cpp:4:20: TypeRef=struct ns1::Base:2:8 Extent=[4:20 - 4:24]