diff options
Diffstat (limited to 'test/Misc/diag-template-diffing.cpp')
-rw-r--r-- | test/Misc/diag-template-diffing.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Misc/diag-template-diffing.cpp b/test/Misc/diag-template-diffing.cpp index 7e9998c828..c6fc32d1b3 100644 --- a/test/Misc/diag-template-diffing.cpp +++ b/test/Misc/diag-template-diffing.cpp @@ -859,6 +859,14 @@ namespace rdar12931988 { // CHECK-ELIDE-NOTREE: no known conversion from 'B::X<int>' to 'const rdar12931988::A::X<int>' ax = bx; } + + template<template<typename> class> class Y {}; + + void bar(Y<A::X> ya, Y<B::X> yb) { + // CHECK-ELIDE-NOTREE: no viable overloaded '=' + // CHECK-ELIDE-NOTREE: no known conversion from 'Y<template rdar12931988::B::X>' to 'Y<template rdar12931988::A::X>' + ya = yb; + } } // CHECK-ELIDE-NOTREE: {{[0-9]*}} errors generated. |