// SPDX-License-Identifier: LGPL-3.0-only // SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts® import std; namespace { // How often each source has registered: [1] is a/Self.cpp's count and // [2] is b/Self.cpp's. int Registered[3]; } // Called by a/Self.cpp with 1 and by b/Self.cpp with 2, as the program starts. void Register(int source) { ++Registered[source]; } // Prints the two counts: "1 1" when each of the two is in the program once. int main() { std::printf("%d %d", Registered[1], Registered[2]); return 0; }