mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-04 19:10:57 +02:00
running in parallel on a multi-core machine (12 min execution time on a i9 9900, ngspice compiled with gcc, debug mode enabled. Linux with Valgrind and Parallel are required.
20 lines
314 B
SourcePawn
20 lines
314 B
SourcePawn
Test sequences for ngspice control structures
|
|
*vectors are used (except foreach)
|
|
*start in interactive mode
|
|
|
|
.control
|
|
|
|
* simple test for label, goto
|
|
echo
|
|
let loop = 0
|
|
label starthere
|
|
echo start "$&loop"
|
|
let loop = loop + 1
|
|
if loop < 3
|
|
goto starthere
|
|
end
|
|
echo end "$&loop"
|
|
|
|
quit
|
|
.endc
|