Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/cpp/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,8 @@
"rename_namespace_nested",
"rename_reparent_root_module",
"no_recycle_after_rename_reparent",
"reimport_after_delete"
"reimport_after_delete",
"same_name_prefix_component_registration"
]
}, {
"id": "ImplicitComponents",
Expand Down
16 changes: 16 additions & 0 deletions test/cpp/src/Module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ namespace ns_parent {
}
}

struct module_a_component { };

class module_a {
public:
module_a(flecs::world &world) {
world.component<module_a_component>();
}
};

struct Module {
Module(flecs::world& world) {
world.module<Module>();
Expand Down Expand Up @@ -546,3 +555,10 @@ void Module_reimport_after_delete(void) {
test_assert(m == ecs.entity<Module>());
}
}

void Module_same_name_prefix_component_registration(void) {
flecs::world world;
world.import<module_a>();

//test_assert
}
Loading