Move dmd files into compiler/

This commit is contained in:
Iain Buclaw 2022-07-09 18:53:07 +02:00
parent 20bd0cacbd
commit 6374bb87b7
4579 changed files with 4 additions and 4 deletions

View file

@ -0,0 +1,34 @@
/* https://issues.dlang.org/show_bug.cgi?id=22972
*/
int printf(const char *, ...);
void exit(int);
void assert(int b, int line)
{
if (!b)
{
printf("failed test %d\n", line);
exit(1);
}
}
struct op {
char text[4];
};
struct op ops[] = {
{ "123" },
{ "456" }
};
char *y = ops[1].text;
char *x[] = { ops[0].text };
int main()
{
//printf("%c %c\n", *y, *x[0]);
assert(*y == '4', 1);
assert(*x[0] == '1', 2);
return 0;
}