Skip to content

Commit b3b04b4

Browse files
committed
C++: Extend template member test to better test on-demand indexing of special member functions.
1 parent 18d9310 commit b3b04b4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

cpp/ql/test/library-tests/members/templates/c1.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@
44
static void f(void) {
55
CA::CB<int> x;
66
CA::CB<float> y;
7+
8+
x.operator=(x);
9+
x.operator=(static_cast<CA::CB<int>&&>(x));
710
}

cpp/ql/test/library-tests/members/templates/members.expected

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
| h.h:2:7:2:8 | CA | 1 CA::operator= |
1212
| h.h:2:7:2:8 | CA | 2 CA::operator= |
1313
| h.h:5:11:5:12 | CB<TB> | <none> |
14-
| h.h:5:11:5:12 | CB<double> | 0 CA::CB<double>::operator= |
15-
| h.h:5:11:5:12 | CB<double> | 1 CA::CB<double>::operator= |
16-
| h.h:5:11:5:12 | CB<float> | 0 CA::CB<float>::operator= |
17-
| h.h:5:11:5:12 | CB<float> | 1 CA::CB<float>::operator= |
14+
| h.h:5:11:5:12 | CB<double> | <none> |
15+
| h.h:5:11:5:12 | CB<float> | <none> |
1816
| h.h:5:11:5:12 | CB<int> | 0 CA::CB<int>::operator= |
1917
| h.h:5:11:5:12 | CB<int> | 1 CA::CB<int>::operator= |

0 commit comments

Comments
 (0)