Last active
January 29, 2020 14:31
-
-
Save neikeq/f5cc384892c87b16b296be711e5c9674 to your computer and use it in GitHub Desktop.
Repro
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
#!/bin/bash | |
ldc2 -wi -v -c test.d |
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
pragma(cppmap, "test_c.h"); | |
mixin(q{ | |
import (C++) *; | |
}); | |
// Uncomment any of these to reproduce the assertion error | |
void fni1(StructI1 s) {} | |
void fni2(StructI2 s) {} | |
//void fni3(StructI3 s) {} | |
//void fni4(StructI4 s) {} | |
void fni5(StructI5 s) {} | |
void fni6(StructI6 s) {} | |
void fnc1(StructC1 s) {} | |
void fnc2(StructC2 s) {} | |
//void fnc3(StructC3 s) {} | |
//void fnc4(StructC4 s) {} | |
//void fnc5(StructC5 s) {} | |
//void fnc6(StructC6 s) {} |
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
struct StructI1 | |
{ | |
int a; | |
}; | |
struct StructI2 | |
{ | |
int a; | |
int b; | |
}; | |
struct StructI3 | |
{ | |
int a; | |
int b; | |
int c; | |
}; | |
struct StructI4 | |
{ | |
int a; | |
int b; | |
int c; | |
int d; | |
}; | |
struct StructI5 | |
{ | |
int a; | |
int b; | |
int c; | |
int d; | |
int e; | |
}; | |
struct StructI6 | |
{ | |
int a; | |
int b; | |
int c; | |
int d; | |
int e; | |
int f; | |
}; | |
struct StructC1 | |
{ | |
char a; | |
}; | |
struct StructC2 | |
{ | |
char a; | |
char b; | |
}; | |
struct StructC3 | |
{ | |
char a; | |
char b; | |
char c; | |
}; | |
struct StructC4 | |
{ | |
char a; | |
char b; | |
char c; | |
char d; | |
}; | |
struct StructC5 | |
{ | |
char a; | |
char b; | |
char c; | |
char d; | |
char e; | |
}; | |
struct StructC6 | |
{ | |
char a; | |
char b; | |
char c; | |
char d; | |
char e; | |
char f; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment