summaryrefslogtreecommitdiff
path: root/tools/mir_opt_test/test_desc.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mir_opt_test/test_desc.h')
-rw-r--r--tools/mir_opt_test/test_desc.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/mir_opt_test/test_desc.h b/tools/mir_opt_test/test_desc.h
new file mode 100644
index 00000000..5e31830c
--- /dev/null
+++ b/tools/mir_opt_test/test_desc.h
@@ -0,0 +1,24 @@
+/*
+ * test_desc.h
+ * - Description of a MIR optimisation test
+ */
+#pragma once
+
+#include <hir/crate_ptr.hpp>
+#include <hir/type.hpp>
+#include <hir/path.hpp>
+#include <path.h>
+
+struct MirOptTestFile
+{
+ ::HIR::CratePtr m_crate;
+
+ struct Test
+ {
+ ::HIR::SimplePath input_function;
+ ::HIR::SimplePath output_template_function;
+ };
+ ::std::vector<Test> m_tests;
+
+ static MirOptTestFile load_from_file(const helpers::path& p);
+};