-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More tests (generated) fixed
- Loading branch information
Showing
6 changed files
with
49 additions
and
4 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,3 @@ | ||
const std = @import("std"); | ||
|
||
extern fn do_the_thing_with_export_name() anyopaque; |
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 +1,10 @@ | ||
const std = @import("std"); | ||
|
||
pub const Normal = extern struct { | ||
x: i32, | ||
y: f32, | ||
}; | ||
|
||
extern fn foo() i32; | ||
|
||
extern fn bar(a: Normal) anyopaque; |
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 +1,5 @@ | ||
const std = @import("std"); | ||
|
||
extern fn first() anyopaque; | ||
|
||
extern fn second() anyopaque; |
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 +1,13 @@ | ||
const std = @import("std"); | ||
|
||
pub const Fns = extern struct { | ||
_noArgs: ?fn() anyopaque, | ||
_anonymousArg: ?fn() anyopaque, | ||
_returnsNumber: ?fn() i32, | ||
_namedArgs: ?fn(first: i32, snd: i16) i8, | ||
_namedArgsWildcards: ?fn(_: i32, named: i16, _1: i64) i8, | ||
}; | ||
|
||
extern fn root(_fns: Fns) anyopaque; | ||
|
||
extern fn no_return() anyopaque; |
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 +1,10 @@ | ||
const std = @import("std"); | ||
|
||
pub const Foo_i32__i32 = extern struct { | ||
x: i32, | ||
y: i32, | ||
}; | ||
|
||
pub const IntFoo_i32 = Foo_i32__i32; | ||
|
||
extern fn root(a: IntFoo_i32) anyopaque; |