Build: qualify target support (closes #38)
This commit is contained in:
1 parent
72148da7b2
commit
1335fa86c3
8 files changed
+689
No files matched your search
@@ -0,0 +1,28 @@
|
||||
// Isolated consumer fixture for target qualification. Exercises a small
|
||||
// runtime behaviour from the always-present Core module so an install/consume
|
||||
// check covers headers, linkage and the module dependency closure.
|
||||
#include <Void/Core/CheckedBits.hpp>
|
||||
#include <Void/Core/Hash.hpp>
|
||||
#include <Void/Core/Uuid.hpp>
|
||||
|
||||
#include <random>
|
||||
#include <string_view>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::mt19937_64 rng{11};
|
||||
const auto uuid = Void::Uuid::v4(rng);
|
||||
const auto chars = Void::Uuid::format_chars(uuid);
|
||||
const auto reparsed =
|
||||
Void::Uuid::parse(std::string_view{chars.data(), chars.size()});
|
||||
if (!reparsed || *reparsed != uuid) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
const auto aligned = Void::Bits::checked_align_up(13u, 8u);
|
||||
if (!aligned || *aligned != 16u) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return Void::Hash::fnv1a64("target-profile") != 0 ? 0 : 1;
|
||||
}
|
||||
Reference in new issue
Block a user