Index: runtime/vm/unit_test.h |
=================================================================== |
--- runtime/vm/unit_test.h (revision 9049) |
+++ runtime/vm/unit_test.h (working copy) |
@@ -40,8 +40,13 @@ |
// The ASSEMBLER_TEST_GENERATE macro is used to generate a unit test |
// for the assembler. |
#define ASSEMBLER_TEST_GENERATE(name, assembler) \ |
- static void AssemblerTestGenerate##name(Assembler* assembler) |
+ void AssemblerTestGenerate##name(Assembler* assembler) |
+// The ASSEMBLER_TEST_EXTERN macro is used to declare a unit test |
+// for the assembler. |
+#define ASSEMBLER_TEST_EXTERN(name) \ |
+ extern void AssemblerTestGenerate##name(Assembler* assembler); |
+ |
// The ASSEMBLER_TEST_RUN macro is used to execute the assembler unit |
// test generated using the ASSEMBLER_TEST_GENERATE macro. |
// C++ callee-saved registers are not preserved. Arguments may be passed in. |