Skip to content

Commit 91c768d

Browse files
committed
Add more sema tests
1 parent 748f28e commit 91c768d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

clang/test/SemaCXX/matrix-types-pseudo-destructor.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ void f() {
66
T().~T();
77
}
88

9+
template <typename T>
10+
void f1(T *f) {
11+
f->~T();
12+
(*f).~T();
13+
}
14+
915
using mat4 = float __attribute__((matrix_type(4, 4)));
1016
using mat4i = int __attribute__((matrix_type(4, 4)));
1117

@@ -17,3 +23,9 @@ void g() {
1723
f<mat4i>();
1824
f<mat4_t<double>>();
1925
}
26+
27+
void g2(mat4* m1, mat4i* m2, mat4_t<double>* m3) {
28+
f1(m1);
29+
f1(m2);
30+
f1(m3);
31+
}

0 commit comments

Comments
 (0)