-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/test-cases: add a test case for CopyObject into self
Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
- Loading branch information
1 parent
839bf59
commit 9f57deb
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Name: CopyObject on yourself works | ||
// Expect: str => Hello World | ||
|
||
DefinitionBlock ("", "DSDT", 2, "uTEST", "TESTTABL", 0xF0F0F0F0) | ||
{ | ||
Method (BAR, 1) { | ||
Debug = "Enter BAR" | ||
CopyObject (Arg0, BAR) | ||
Debug = "Leave BAR" | ||
} | ||
|
||
Method (FOO) { | ||
Debug = "Enter FOO" | ||
CopyObject("Hello", FOO) | ||
BAR(" World") | ||
Debug = "Leave FOO" | ||
|
||
Return (0x123) | ||
} | ||
|
||
Method (MAIN) { | ||
Local0 = FOO() | ||
Printf("First invocation of FOO returned %o", Local0) | ||
|
||
Return (Concatenate(FOO, BAR)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters