Ticket #278: poly_dtor.cfa

File poly_dtor.cfa, 402 bytes (added by caparson, 3 years ago)

Minimal reproduction of the issue

Line 
1struct myType;
2void foo( myType & t );
3void ^?{}( myType & t );
4
5forall( T )
6trait embedded {
7 void foo( T & );
8};
9
10forall( T | embedded( T ) ) {
11 struct A {
12 inline T;
13 };
14
15 void ^?{}( A(T) & t ) { printf("A\n"); }
16}
17
18struct myType {};
19void foo( myType & t ) {}
20void ^?{}( myType & t ) { printf("T\n"); }
21
22int main() {
23 {
24 A( myType ) a;
25 }
26}