Index: pkg/smoke/test/mirrors_used_test.dart |
diff --git a/pkg/smoke/test/mirrors_used_test.dart b/pkg/smoke/test/mirrors_used_test.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6bba0fd98fd53a81f2f925810263e54e520dda3d |
--- /dev/null |
+++ b/pkg/smoke/test/mirrors_used_test.dart |
@@ -0,0 +1,23 @@ |
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+library smoke.test.mirrors_test; |
+ |
+import 'package:smoke/mirrors.dart'; |
+import 'package:unittest/unittest.dart'; |
+import 'common.dart' hide main; |
+import 'common.dart' as common show main; |
+ |
+ |
+@MirrorsUsed( |
+ targets: const [A, B, C, D, E, E2, F, F2, G, H], |
+ override: 'smoke.mirrors') |
+import 'dart:mirrors'; |
+ |
+main() { |
+ setUp(useMirrors); |
+ common.main(); |
+} |
+ |
+_unused() => MirrorSystem; // to prevent analyzer warnings. |