C++: Extend template member test to better test on-demand indexing of special member functions.

This commit is contained in:
Alexandre Boulgakov
2024-07-12 18:08:18 +01:00
parent 18d9310a61
commit b3b04b4e5b
2 changed files with 5 additions and 4 deletions

View File

@@ -4,4 +4,7 @@
static void f(void) {
CA::CB<int> x;
CA::CB<float> y;
x.operator=(x);
x.operator=(static_cast<CA::CB<int>&&>(x));
}

View File

@@ -11,9 +11,7 @@
| h.h:2:7:2:8 | CA | 1 CA::operator= |
| h.h:2:7:2:8 | CA | 2 CA::operator= |
| h.h:5:11:5:12 | CB<TB> | <none> |
| h.h:5:11:5:12 | CB<double> | 0 CA::CB<double>::operator= |
| h.h:5:11:5:12 | CB<double> | 1 CA::CB<double>::operator= |
| h.h:5:11:5:12 | CB<float> | 0 CA::CB<float>::operator= |
| h.h:5:11:5:12 | CB<float> | 1 CA::CB<float>::operator= |
| h.h:5:11:5:12 | CB<double> | <none> |
| h.h:5:11:5:12 | CB<float> | <none> |
| h.h:5:11:5:12 | CB<int> | 0 CA::CB<int>::operator= |
| h.h:5:11:5:12 | CB<int> | 1 CA::CB<int>::operator= |