summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Index/print-type-declaration.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Index/print-type-declaration.cpp b/clang/test/Index/print-type-declaration.cpp
new file mode 100644
index 00000000000..31c0a73fcd0
--- /dev/null
+++ b/clang/test/Index/print-type-declaration.cpp
@@ -0,0 +1,12 @@
+
+class Test{};
+
+int main()
+{
+ auto a = Test();
+ auto b = a;
+}
+
+// RUN: c-index-test -test-print-type-declaration -std=c++11 %s | FileCheck %s
+// CHECK: VarDecl=a:6:8 (Definition) [typedeclaration=Test] [typekind=Record]
+// CHECK: VarDecl=b:7:8 (Definition) [typedeclaration=Test] [typekind=Record]
OpenPOWER on IntegriCloud