Isaac Woods 3 роки тому
батько
коміт
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
+	}
 }