17 lines
487 B
C++
17 lines
487 B
C++
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
||
|
|
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||
|
|
|
||
|
|
#warning "consumer is noisy"
|
||
|
|
|
||
|
|
import std;
|
||
|
|
import Widget;
|
||
|
|
|
||
|
|
extern "C" long CounterValue();
|
||
|
|
|
||
|
|
// Prints "<module value> <C value>". The test asserts on it so that "the build
|
||
|
|
// succeeded" also means the objects behind those two numbers were really
|
||
|
|
// produced, not merely left over from an earlier pass.
|
||
|
|
int main() {
|
||
|
|
std::print("{} {}", WidgetValue(), CounterValue());
|
||
|
|
return 0;
|
||
|
|
}
|