Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 22674 - ImportC: compatible types declared in different tra…
…nslation units are not treated equivalent in D
- Loading branch information
1 parent
58968d3
commit ab24cd2
Showing
6 changed files
with
33 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
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 +1,4 @@ | ||
extern int xx; | ||
|
||
typedef struct Foo *FooRef; | ||
FooRef make_foo(void); |
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,4 @@ | ||
extern int xx; | ||
|
||
typedef struct Foo *FooRef; | ||
void free_foo(FooRef foo); |
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,9 @@ | ||
// https://issues.dlang.org/show_bug.cgi?id=22674 | ||
|
||
import imports.cimports2a; | ||
import imports.cimports2b; | ||
|
||
void do_foo(){ | ||
FooRef f = make_foo(); // use_foo.d(5) | ||
free_foo(f); // use_foo.d(6) | ||
} |