mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Move dmd files into compiler/
This commit is contained in:
parent
20bd0cacbd
commit
6374bb87b7
4579 changed files with 4 additions and 4 deletions
34
compiler/test/runnable/test22972.c
Normal file
34
compiler/test/runnable/test22972.c
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue