gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] Problem with testsuite/gm2/extensions/run/pass/vararg3.mod


From: Ernst Bokkelkamp
Subject: [Gm2] Problem with testsuite/gm2/extensions/run/pass/vararg3.mod
Date: Tue, 18 Apr 2017 11:32:48 +0200

If the description given at http://nongnu.org/gm2/interface_to_c.html is
correct then there is a problem with the test case
testsuite/gm2/extensions/run/pass/vararg3.mod

"If a procedure function is declared using varargs then some parameter
values are converted. The table below summarises the default conversions and
default types used...."
"If you wish to pass int values then you should explicitly convert the
constants using one of the conversion mechanisms. For example: INTEGER(10)
or VAL(INTEGER, 10) or CAST(INTEGER, 10)."

Under Raspbian Jessie the following change is required for the test to pass.

---
/home/pi/GM2_520/gcc-5.2.0+gm2-git-latest/gm2/gcc-versionno/gcc/testsuite/gm
2/extensions/run/pass/vararg3.mod       2017-03-29 15:34:52.000000000 +0200
+++
/home/pi/GM2_520_TEST/gcc-5.2.0+gm2-git-latest/gm2/gcc-versionno/gcc/testsui
te/gm2/extensions/run/pass/vararg3.mod  2017-04-18 09:36:20.234962373 +0200
@@ -21,7 +21,7 @@
 FROM SYSTEM IMPORT ADR ;

 BEGIN
-   IF funcptrint(ADR("hello world"), 11)=1
+   IF funcptrint(ADR("hello world"), INTEGER(11))=1
    THEN
    END
 END vararg3.

Best regards,
Ernst Bokkelkamp




reply via email to

[Prev in Thread] Current Thread [Next in Thread]