29 lines
811 B
C++
29 lines
811 B
C++
// 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;
|
|
}
|