Files
KirkOS/libs/uacpi/tests/test-cases/hanging-while.asl
T
2026-04-15 13:42:16 -04:00

25 lines
425 B
Plaintext

// Name: Infinite While loops eventually ends
// Expect: int => 1
DefinitionBlock ("", "DSDT", 2, "uTEST", "TESTTABL", 0xF0F0F0F0)
{
Name (LOOP, 0)
Method (HANG) {
LOOP = 1
While (LOOP++) { }
}
HANG()
Method (MAIN) {
Printf("Looped %o times before getting aborted", ToDecimalString(LOOP))
If (LOOP < 100) {
Return (0)
}
Return (1)
}
}