Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1023)

Side by Side Diff: pkg/front_end/test/fasta/rasta/super.dart

Issue 2825063002: Move kernel baseline tests to front_end. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE.md file.
4
5 class A {
6 var a;
7 var b;
8 var c;
9 var d;
10 get e => null;
11 final f;
12 set g(_) {}
13 get h => null;
14 set h(_) {}
15 get i => null;
16
17 operator [](_) => null;
18 operator []=(a, b) {}
19 operator ~() => 117;
20 operator -() => 117;
21
22 operator ==(other) => true;
23
24 void m() {}
25
26 void n() {}
27 set n(_) {}
28 }
29
30 class B extends A {
31 get b => null;
32 set c(x) {}
33 final d;
34 set i(x) {}
35 }
36
37 class C extends B {
38 test() {
39 ~super;
40 use(~super);
41 -super;
42 use(-super);
43 +super;
44 use(+super);
45 super == 87;
46 use(super == 87);
47 super != 87;
48 use(super != 87);
49
50 super.a;
51 use(super.a);
52 super.b;
53 use(super.b);
54 super.c;
55 use(super.c);
56 super.d;
57 use(super.d);
58 super.e;
59 use(super.e);
60 super.f;
61 use(super.f);
62 super.g;
63 use(super.g);
64 super.h;
65 use(super.h);
66 super.i;
67 use(super.i);
68 super[87];
69 use(super[87]);
70 super.m;
71 use(super.m);
72 super.n;
73 use(super.n);
74
75 super.a++;
76 use(super.a++);
77 super.b++;
78 use(super.b++);
79 super.c++;
80 use(super.c++);
81 super.d++;
82 use(super.d++);
83 super.e++;
84 use(super.e++);
85 super.f++;
86 use(super.f++);
87 super.g++;
88 use(super.g++);
89 super.h++;
90 use(super.h++);
91 super.i++;
92 use(super.i++);
93 super[87]++;
94 use(super[87]++);
95 super.m++;
96 use(super.m++);
97 super.n++;
98 use(super.n++);
99
100 ++super.a;
101 use(++super.a);
102 ++super.b;
103 use(++super.b);
104 ++super.c;
105 use(++super.c);
106 ++super.d;
107 use(++super.d);
108 ++super.e;
109 use(++super.e);
110 ++super.f;
111 use(++super.f);
112 ++super.g;
113 use(++super.g);
114 ++super.h;
115 use(++super.h);
116 ++super.i;
117 use(++super.i);
118 ++super[87];
119 use(++super[87]);
120 ++super.m;
121 use(++super.m);
122 ++super.n;
123 use(++super.n);
124
125 super.a();
126 use(super.a());
127 super.b();
128 use(super.b());
129 super.c();
130 use(super.c());
131 super.d();
132 use(super.d());
133 super.e();
134 use(super.e());
135 super.f();
136 use(super.f());
137 super.g();
138 use(super.g());
139 super.h();
140 use(super.h());
141 super.i();
142 use(super.i());
143 super[87]();
144 use(super[87]());
145 super.m();
146 use(super.m());
147 super.m(87);
148 use(super.m(87));
149 super.n(87);
150 use(super.n(87));
151
152 super.a = 42;
153 use(super.a = 42);
154 super.b = 42;
155 use(super.b = 42);
156 super.c = 42;
157 use(super.c = 42);
158 super.d = 42;
159 use(super.d = 42);
160 super.e = 42;
161 use(super.e = 42);
162 super.f = 42;
163 use(super.f = 42);
164 super.g = 42;
165 use(super.g = 42);
166 super.h = 42;
167 use(super.h = 42);
168 super.i = 42;
169 use(super.i = 42);
170 super[87] = 42;
171 use(super[87] = 42);
172 super.m = 42;
173 use(super.m = 42);
174 super.n = 42;
175 use(super.n = 42);
176
177 super.a ??= 42;
178 use(super.a ??= 42);
179 super.b ??= 42;
180 use(super.b ??= 42);
181 super.c ??= 42;
182 use(super.c ??= 42);
183 super.d ??= 42;
184 use(super.d ??= 42);
185 super.e ??= 42;
186 use(super.e ??= 42);
187 super.f ??= 42;
188 use(super.f ??= 42);
189 super.g ??= 42;
190 use(super.g ??= 42);
191 super.h ??= 42;
192 use(super.h ??= 42);
193 super.i ??= 42;
194 use(super.i ??= 42);
195 super[87] ??= 42;
196 use(super[87] ??= 42);
197 super.m ??= 42;
198 use(super.m ??= 42);
199 super.n ??= 42;
200 use(super.n ??= 42);
201
202 super.a += 42;
203 use(super.a += 42);
204 super.b += 42;
205 use(super.b += 42);
206 super.c += 42;
207 use(super.c += 42);
208 super.d += 42;
209 use(super.d += 42);
210 super.e += 42;
211 use(super.e += 42);
212 super.f += 42;
213 use(super.f += 42);
214 super.g += 42;
215 use(super.g += 42);
216 super.h += 42;
217 use(super.h += 42);
218 super.i += 42;
219 use(super.i += 42);
220 super[87] += 42;
221 use(super[87] += 42);
222 super.m += 42;
223 use(super.m += 42);
224 super.n += 42;
225 use(super.n += 42);
226
227 super.a -= 42;
228 use(super.a -= 42);
229 super.b -= 42;
230 use(super.b -= 42);
231 super.c -= 42;
232 use(super.c -= 42);
233 super.d -= 42;
234 use(super.d -= 42);
235 super.e -= 42;
236 use(super.e -= 42);
237 super.f -= 42;
238 use(super.f -= 42);
239 super.g -= 42;
240 use(super.g -= 42);
241 super.h -= 42;
242 use(super.h -= 42);
243 super.i -= 42;
244 use(super.i -= 42);
245 super[87] -= 42;
246 use(super[87] -= 42);
247 super.m -= 42;
248 use(super.m -= 42);
249 super.n -= 42;
250 use(super.n -= 42);
251 }
252 }
253
254 use(x) {
255 if (x == new DateTime.now().millisecondsSinceEpoch) throw "Shouldn't happen";
256 }
257
258 main() {
259 new C().test();
260 }
OLDNEW
« no previous file with comments | « pkg/front_end/test/fasta/rasta/static.dart.outline.expect ('k') | pkg/front_end/test/fasta/rasta/super.dart.dartk.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698