summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2011-04-13 09:06:21 -0700
committerRobert Moore <Robert.Moore@intel.com>2011-04-13 09:06:21 -0700
commit904b85ce8762fc55eb93171aae2773c40897ca9a (patch)
treeef30f17919fdd735dbdd7a116b4eb8586b16ea26 /tests
parentcfbcf49663c159cbdaf3ac0efced971fab9eb97e (diff)
downloadacpica-904b85ce8762fc55eb93171aae2773c40897ca9a.tar.gz
badcode.asl: update for iASL return value checking change.
Add a new case for a method that returns no value, but one is expected.
Diffstat (limited to 'tests')
-rw-r--r--tests/misc/badcode.asl5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/misc/badcode.asl b/tests/misc/badcode.asl
index 08da11dc9..4e90eac31 100644
--- a/tests/misc/badcode.asl
+++ b/tests/misc/badcode.asl
@@ -116,6 +116,11 @@ DefinitionBlock ("badcode.aml", "DSDT", 1, "Intel", "Example", 0x00000001)
Store (MTH2 (), Local0)
}
+ // Method MTH4 does not explicitly return a value
+
+ Method (MTH4) {Return}
+ Method (MTH5) {Store (MTH4(), Local0)}
+
// Invalid _HID values
Device (H1)