summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/index-template-template-param.cpp
diff options
context:
space:
mode:
authorJan Korous <jkorous@apple.com>2017-10-10 21:09:49 +0000
committerJan Korous <jkorous@apple.com>2017-10-10 21:09:49 +0000
commit330f0887d6dc98911f3913bb228d5c3592297b6d (patch)
tree1468a0a5a9a244ca491395c220b2be7e4eda43c4 /clang/test/Index/index-template-template-param.cpp
parentdecaff11aae7708efe3eefb5ad4612ad0919b7a7 (diff)
downloadbcm5719-llvm-330f0887d6dc98911f3913bb228d5c3592297b6d.tar.gz
bcm5719-llvm-330f0887d6dc98911f3913bb228d5c3592297b6d.zip
Fix indexer crash for default template template parameter value
rdar://33058798 Differential Revision: https://reviews.llvm.org/D38755 llvm-svn: 315367
Diffstat (limited to 'clang/test/Index/index-template-template-param.cpp')
-rw-r--r--clang/test/Index/index-template-template-param.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Index/index-template-template-param.cpp b/clang/test/Index/index-template-template-param.cpp
new file mode 100644
index 00000000000..af1c4634adb
--- /dev/null
+++ b/clang/test/Index/index-template-template-param.cpp
@@ -0,0 +1,7 @@
+// RUN: c-index-test -index-file %s -x objective-c++ | FileCheck %s
+
+template <typename T> class Template1 {};
+
+template <template <class> class TMPL = Template1> class Template2;
+
+// CHECK: [indexEntityReference]: kind: c++-class-template | name: Template1 |
OpenPOWER on IntegriCloud