add tests

This commit is contained in:
alexlamsl 2017-12-22 03:47:25 +08:00
parent 28b697f617
commit fd267ad1a5

View File

@ -299,19 +299,55 @@ issue_2629_1: {
side_effects: true, side_effects: true,
} }
input: { input: {
/*@__PURE__*/ f1(); /*@__PURE__*/ a();
(/*@__PURE__*/ f2)(); /*@__PURE__*/ (b());
/*@__PURE__*/ (f3()); (/*@__PURE__*/ c)();
(/*@__PURE__*/ f4()); (/*@__PURE__*/ d());
/*@__PURE__*/ f5(1)(2)(3);
(/*@__PURE__*/ f6(1)(2)(3));
/*@__PURE__*/ f7.x(1).y(2).z(3);
(/*@__PURE__*/ f8.x(1).y(2).z(3));
} }
expect: {} expect: {}
} }
issue_2629_2: { issue_2629_2: {
options = {
side_effects: true,
}
input: {
/*@__PURE__*/ a(1)(2)(3);
/*@__PURE__*/ (b(1))(2)(3);
/*@__PURE__*/ (c(1)(2))(3);
/*@__PURE__*/ (d(1)(2)(3));
(/*@__PURE__*/ e)(1)(2)(3);
(/*@__PURE__*/ f(1))(2)(3);
(/*@__PURE__*/ g(1)(2))(3);
(/*@__PURE__*/ h(1)(2)(3));
}
expect: {}
}
issue_2629_3: {
options = {
side_effects: true,
}
input: {
/*@__PURE__*/ a.x(1).y(2).z(3);
/*@__PURE__*/ (a.x)(1).y(2).z(3);
/*@__PURE__*/ (a.x(1)).y(2).z(3);
/*@__PURE__*/ (a.x(1).y)(2).z(3);
/*@__PURE__*/ (a.x(1).y(2)).z(3);
/*@__PURE__*/ (a.x(1).y(2).z)(3);
/*@__PURE__*/ (a.x(1).y(2).z(3));
(/*@__PURE__*/ a).x(1).y(2).z(3);
(/*@__PURE__*/ a.x)(1).y(2).z(3);
(/*@__PURE__*/ a.x(1)).y(2).z(3);
(/*@__PURE__*/ a.x(1).y)(2).z(3);
(/*@__PURE__*/ a.x(1).y(2)).z(3);
(/*@__PURE__*/ a.x(1).y(2).z)(3);
(/*@__PURE__*/ a.x(1).y(2).z(3));
}
expect: {}
}
issue_2629_4: {
options = { options = {
side_effects: true, side_effects: true,
} }
@ -325,7 +361,7 @@ issue_2629_2: {
} }
} }
issue_2629_3: { issue_2629_5: {
options = { options = {
side_effects: true, side_effects: true,
} }