summaryrefslogtreecommitdiffstats
path: root/clang/test/Misc/diag-template-diffing.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2013-04-03 02:31:17 +0000
committerRichard Trieu <rtrieu@google.com>2013-04-03 02:31:17 +0000
commitbcd06c0220b2e3524aeefa4a7bf8f7f8d83db706 (patch)
tree39ac2a95937e8f13d2310391f47ffd8f57ee1e0b /clang/test/Misc/diag-template-diffing.cpp
parentad13f55356c4452631edc9b17b9dce8cac388c78 (diff)
downloadbcm5719-llvm-bcd06c0220b2e3524aeefa4a7bf8f7f8d83db706.tar.gz
bcm5719-llvm-bcd06c0220b2e3524aeefa4a7bf8f7f8d83db706.zip
Do not assume the template argument is an integer only because the
expressions are integer. It can also be ValueDecl expressions Use the type information from the TemplateParameterList instead Patch by Olivier Goffart! llvm-svn: 178611
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 f27f8b67e2c..add96efd37b 100644
--- a/clang/test/Misc/diag-template-diffing.cpp
+++ b/clang/test/Misc/diag-template-diffing.cpp
@@ -985,6 +985,11 @@ namespace VariadicDefault {
// CHECK-ELIDE-NOTREE: no viable overloaded '='
// CHECK-ELIDE-NOTREE: no known conversion from 'B<(default) i1, (no argument)>' to 'B<i2, i3>'
+ B<i1, i2, i3> b4 = b1;
+ // CHECK-ELIDE-NOTREE: no viable conversion from 'B<[...], (no argument), (no argument)>' to 'B<[...], i2, i3>'
+ B<i2, i3> b5 = b1;
+ // CHECK-ELIDE-NOTREE: no viable conversion from 'B<(default) i1, (no argument)>' to 'B<i2, i3>'
+
C<> c1;
C<void, void> c2;
C<char, char> c3;
OpenPOWER on IntegriCloud