diff --git a/tests/test-cases/empty-objects.asl b/tests/test-cases/empty-objects.asl new file mode 100644 index 00000000..0566bb29 --- /dev/null +++ b/tests/test-cases/empty-objects.asl @@ -0,0 +1,21 @@ +// Name: Empty objects behave correctly +// Expect: int => 0 + +DefinitionBlock ("", "DSDT", 2, "uTEST", "TESTTABL", 0xF0F0F0F0) +{ + Method (EMPT) {} + + Method (MAIN) { + Local0 = EMPT() + Debug = Local0 + + Local0 = Package (0) { } + Debug = Local0 + + Local0 = 0 + Local1 = Package(Local0) { } + Debug = Local1 + + Return (0) + } +} diff --git a/tests/utilities/asl.py b/tests/utilities/asl.py index 14a22034..3aabd448 100644 --- a/tests/utilities/asl.py +++ b/tests/utilities/asl.py @@ -152,6 +152,8 @@ def compile(path: str, compiler: str, bin_dir: str) -> str: # One or more objects within the Pathname do not exist "-vw", "6161", + # Called method returns no value + "-vw", "6080", # Object does not exist "-vw", "6084",