Runs compilation failure tests.
diff --git a/compiler/front_end/module_ir_test.py b/compiler/front_end/module_ir_test.py
index 4eac8f1..5faa107 100644
--- a/compiler/front_end/module_ir_test.py
+++ b/compiler/front_end/module_ir_test.py
@@ -4194,12 +4194,12 @@
 
     return test_case
 
-  for test in _get_test_cases():
+  for test in _get_negative_test_cases():
     test_name = "test " + test.name + " compilation failure"
     assert not hasattr(ModuleIrTest, test_name)
     setattr(ModuleIrTest, test_name, _make_negative_test(test))
 
-
+_make_negative_tests()
 _make_superset_tests()
 _make_source_location_tests()