We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a42df45 commit fe44c73Copy full SHA for fe44c73
tests/cpp/c_codegen_test.cc
@@ -121,5 +121,11 @@ TEST(CCodegen, FunctionOrder) {
121
auto module = build(inputs, Target());
122
Array<String> func_array = module->GetFunction("get_func_names", false)();
123
std::vector<std::string> functions{func_array.begin(), func_array.end()};
124
+ // The entry point is handled separately from the other functions.
125
+ functions.erase(std::remove_if(functions.begin(), functions.end(),
126
+ [](const std::string& name) {
127
+ return name == tvm::runtime::symbol::tvm_module_main;
128
+ }),
129
+ functions.end());
130
EXPECT_TRUE(std::is_sorted(functions.begin(), functions.end()));
131
}
0 commit comments