catchorg / catchorg/Catch2

How does (can) auto-registration work?

Open
#2,872 1 comment 0 reactions 0 assignees View on GitHub
Query
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

Sorry to use an issue for this, but I don't know how else to ask. How can tests be self-registering? Isn't the compiler allowed to dead-strip those `AutoReg` instances? Maybe it just happens to work on all shipping compilers?

Thanks for indulging this misplaced question,
Dave

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.