summaryrefslogtreecommitdiffstats
path: root/clang/test/Misc/diag-template-diffing.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-10-28 19:54:43 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-10-28 19:54:43 +0000
commite0ab873a843b5f1320d376d67c9c5683c89a9921 (patch)
tree8f69be9e1b95e71b97b6b710bce84bae0726166a /clang/test/Misc/diag-template-diffing.cpp
parent4f69f924df9b65f53eccd0a05bed6ca62b2ae2fd (diff)
downloadbcm5719-llvm-e0ab873a843b5f1320d376d67c9c5683c89a9921.tar.gz
bcm5719-llvm-e0ab873a843b5f1320d376d67c9c5683c89a9921.zip
PR30831: Teach template type diffing to cope with TemplateSpecializationTypes
that desugar to non-TSTs (such as injected-class-names). llvm-svn: 285437
Diffstat (limited to 'clang/test/Misc/diag-template-diffing.cpp')
-rw-r--r--clang/test/Misc/diag-template-diffing.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Misc/diag-template-diffing.cpp b/clang/test/Misc/diag-template-diffing.cpp
index a4f29cc8c7f..78083989928 100644
--- a/clang/test/Misc/diag-template-diffing.cpp
+++ b/clang/test/Misc/diag-template-diffing.cpp
@@ -1492,3 +1492,8 @@ void run(A_reg<float> reg, A_ptr<float> ptr, A_ref<float> ref) {
// CHECK-NOELIDE-NOTREE: {{[0-9]*}} errors generated.
// CHECK-ELIDE-TREE: {{[0-9]*}} errors generated.
// CHECK-NOELIDE-TREE: {{[0-9]*}} errors generated.
+
+namespace pr30831 {
+ template <typename T> struct A { static A<T> const a; };
+ template <typename T> A<T> A<T>::a = A<T>();
+}
OpenPOWER on IntegriCloud