@@ -94,27 +94,26 @@ multiclass MultiClassTest {
94
94
defm test6_in_multiclass_def_ : MultiClassTest;
95
95
96
96
//-----------------------------------------------------------------------------//
97
- // Default argument will be considered as well.
97
+ // Default argument/temporary actual parameter will be considered as well.
98
+ class D<int n>;
98
99
99
- class TestArgument<B b = B< >> {
100
- list<B> instances_B = !instances<B >();
100
+ class TestArgument<D d = D<0 >> {
101
+ list<D> instances_D = !instances<D >();
101
102
}
102
103
103
104
// CHECK-LABEL: def test7_default_arg {
104
- // CHECK-NEXT: list<B> instances_B = [anonymous_0, b0, b1, b2, b3 ];
105
+ // CHECK-NEXT: list<D> instances_D = [anonymous_0];
105
106
// CHECK-NEXT: }
106
107
def test7_default_arg : TestArgument;
107
108
108
- // Temporary actual parameter won't be considered.
109
-
110
109
// CHECK-LABEL: def test8_anonymous0_arg {
111
- // CHECK-NEXT: list<B> instances_B = [anonymous_0, b0, b1, b2, b3 ];
110
+ // CHECK-NEXT: list<D> instances_D = [anonymous_0, anonymous_1 ];
112
111
// CHECK-NEXT: }
113
112
// CHECK-LABEL: def test8_anonymous1_arg {
114
- // CHECK-NEXT: list<B> instances_B = [anonymous_0, b0, b1, b2, b3 ];
113
+ // CHECK-NEXT: list<D> instances_D = [anonymous_0, anonymous_1, anonymous_2 ];
115
114
// CHECK-NEXT: }
116
- def test8_anonymous0_arg : TestArgument<B< >>;
117
- def test8_anonymous1_arg : TestArgument<B< >>;
115
+ def test8_anonymous0_arg : TestArgument<D<1 >>;
116
+ def test8_anonymous1_arg : TestArgument<D<2 >>;
118
117
119
118
//-----------------------------------------------------------------------------//
120
119
0 commit comments