-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix RABIN2_SWIFTLIB and add tests from r2 and rabin2 ##bin
- Loading branch information
Showing
2 changed files
with
47 additions
and
2 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
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,43 @@ | ||
NAME=swift demangling trylib false | ||
FILE=- | ||
CMDS=<<EOF | ||
%RABIN2_SWIFTLIB=0 | ||
!!rabin2 -D swift _TFC4test7MyClass9calculatefS0_FT1xSi_Si | ||
EOF | ||
EXPECT=<<EOF | ||
Swift.test.MyClass.calculate (self) -> (): , ) () | ||
EOF | ||
RUN | ||
|
||
NAME=swift demangling trylib true | ||
FILE=- | ||
CMDS=<<EOF | ||
%RABIN2_SWIFTLIB=1 | ||
!!rabin2 -D swift _TFC4test7MyClass9calculatefS0_FT1xSi_Si | ||
EOF | ||
EXPECT=<<EOF | ||
test.MyClass.calculate(test.MyClass) -> (x: Swift.Int) -> Swift.Int | ||
EOF | ||
RUN | ||
|
||
NAME=swift demangling config var internal | ||
FILE=- | ||
CMDS=<<EOF | ||
-e bin.demangle.trylib=false | ||
iD swift _TFC4test7MyClass9calculatefS0_FT1xSi_Si | ||
EOF | ||
EXPECT=<<EOF | ||
Swift.test.MyClass.calculate (self) -> (): , ) () | ||
EOF | ||
RUN | ||
|
||
NAME=swift demangling config var system library | ||
FILE=- | ||
CMDS=<<EOF | ||
-e bin.demangle.trylib=true | ||
iD swift _TFC4test7MyClass9calculatefS0_FT1xSi_Si | ||
EOF | ||
EXPECT=<<EOF | ||
test.MyClass.calculate(test.MyClass) -> (x: Swift.Int) -> Swift.Int | ||
EOF | ||
RUN |