Skip to content

Commit 5a41df5

Browse files
committed
adds the tests
I can just preprocess it on my machine!
1 parent 8fac67d commit 5a41df5

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

ctoxml/test.t/run.t

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5385,3 +5385,65 @@
53855385
</body>
53865386
</fundef>
53875387
</file>
5388+
5389+
$ ctoxml complex-pre.c
5390+
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
5391+
<file>
5392+
<fundef id="main" store="auto">
5393+
<type>
5394+
<long/>
5395+
</type>
5396+
<body>
5397+
<var id="z1" store="auto">
5398+
<cdouble/>
5399+
<add>
5400+
<float>0.0</float>
5401+
<mul>
5402+
<call>
5403+
<get ref="__builtin_inff"/>
5404+
</call>
5405+
<get ref="_Imaginary_I"/>
5406+
</mul>
5407+
</add>
5408+
</var>
5409+
<var id="z2" store="auto">
5410+
<cdouble/>
5411+
<add>
5412+
<float>0.0</float>
5413+
<mul>
5414+
<call>
5415+
<get ref="__builtin_inff"/>
5416+
</call>
5417+
<float>1.0iF</float>
5418+
</mul>
5419+
</add>
5420+
</var>
5421+
<call>
5422+
<get ref="printf"/>
5423+
<string>z1 = %.1f%+.1fi
5424+
</string>
5425+
<call>
5426+
<get ref="creal"/>
5427+
<get ref="z1"/>
5428+
</call>
5429+
<call>
5430+
<get ref="cimag"/>
5431+
<get ref="z1"/>
5432+
</call>
5433+
</call>
5434+
<call>
5435+
<get ref="printf"/>
5436+
<string>z2 = %.1f%+.1fi
5437+
</string>
5438+
<call>
5439+
<get ref="creal"/>
5440+
<get ref="z2"/>
5441+
</call>
5442+
<call>
5443+
<get ref="cimag"/>
5444+
<get ref="z2"/>
5445+
</call>
5446+
</call>
5447+
</body>
5448+
</fundef>
5449+
</file>

0 commit comments

Comments
 (0)