2
0
Isaac Woods 3 жил өмнө
parent
commit
26b7ddfaf4
1 өөрчлөгдсөн 10 нэмэгдсэн , 0 устгасан
  1. 10 0
      tests/while.asl

+ 10 - 0
tests/while.asl

@@ -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
+	}
 }