Files
lightgui_rust/crates/lightgui-debug/tests/targets/spin.cpp
T
cnmcdee 3d53281388 Add lightgui-debug and lightgui-support: GDB MI debugger + theme/preferences/codeview/cmake ports
lightgui-debug: GdbSession over gdb -q -i=mi2 pipes with hand-written MI
parser (mi.rs), settings/breakpoint/variable types, and the 44-check
C++ harness ported as Rust tests (37 console + 7 GTK, gdb 17.1).
lightgui-support: CodeTheme + C tokenizer/highlighter, FontSettings,
CodeView fold/gutter/inspection widget, CMake project builder.
Tests: debug 59/59, support 23/23 (incl. theme/font/cmake suites).
cargo test clean, zero rustc warnings, clippy clean, cargo fmt clean.
2026-11-29 06:10:11 +00:00

13 lines
278 B
C++

// Debugger test target: never exits on its own (kill/restart tests).
// Compile with: g++ -g -O0 -o spin spin.cpp
#include <cstdio>
int main() {
volatile long n = 0;
std::printf("SPINNING\n");
std::fflush(stdout);
while (1) {
n++;
}
return 0;
}