Skip to content

Commit

Permalink
Add test for DefBreak
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacWoods committed Aug 16, 2021
1 parent 06409b3 commit 26b7ddf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/while.asl
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,14 @@ DefinitionBlock("while.aml", "DSDT", 1, "RSACPI", "WHILE", 1) {
While (X < 5) {
X += 1
}

// Test `DefBreak` - Y should only make it to 5
Name(Y, 0)
While (Y < 10) {
If (Y >= 5) {
Break
}

Y += 1
}
}

0 comments on commit 26b7ddf

Please sign in to comment.