]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/runnable/test17.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / runnable / test17.d
CommitLineData
b4c522fa
IB
1
2import core.stdc.stdio: fflush, stdout;
3
4extern(C) int printf(const char*, ...);
5
6void ulog(string s)
7{
5fee5ec3 8 printf("%.*s\n",cast(int)s.length, s.ptr);
b4c522fa
IB
9 fflush(stdout);
10}
11
12int open()
13{
14 char *s;
5fee5ec3
IB
15 char[2000] abs;
16 char[100] qu;
b4c522fa
IB
17 int a;
18 ulog("reaches this only 9 times of 10!\n");
19 return 0;
20}
21
22
23int yhenda()
24{
5fee5ec3 25 char[2200] MEM;
b4c522fa
IB
26 int a;
27 ulog("point(2.1) \n");
28 open();
29 ulog("point(2.2) \n");
30 return 0;
31}
32
33
34int main()
35{
36 printf("Content-type: text/html\n\n");
37 fflush(stdout);
38 ulog("point(1.1)\n");
39 yhenda();
40 ulog("point(1.2)\n");
41 return 0;
42}
43