-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9b3183
commit 722d67d
Showing
8 changed files
with
144 additions
and
30 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
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
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
extern crate raw_dylib_alt_calling_convention_test; | ||
|
||
fn main() { | ||
raw_dylib_alt_calling_convention_test::library_function(); | ||
raw_dylib_alt_calling_convention_test::library_function( | ||
std::env::args().skip(1).next().map_or( | ||
false, | ||
|s| std::str::FromStr::from_str(&s).unwrap())); | ||
} |
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
11 changes: 11 additions & 0 deletions
11
src/test/run-make/raw-dylib-alt-calling-convention/output.msvc.txt
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,11 @@ | ||
fastcall_fn_5(S { x: 1, y: 2 }, 16) | ||
fastcall_fn_7(S2 { x: 15, y: 16 }, 3) | ||
vectorcall_fn_1(14) | ||
vectorcall_fn_2(16, 3.5) | ||
vectorcall_fn_3(3.5) | ||
vectorcall_fn_4(1, 2, 3.0) | ||
vectorcall_fn_5(S { x: 1, y: 2 }, 16) | ||
vectorcall_fn_6(S { x: 10, y: 12 }) | ||
vectorcall_fn_7(S2 { x: 15, y: 16 }, 3) | ||
vectorcall_fn_8(S3 { x: [1, 2, 3, 4, 5] }, S3 { x: [6, 7, 8, 9, 10] }) | ||
vectorcall_fn_9(1, 3.0) |