diff --git a/test/compiler/Makefile b/test/compiler/Makefile index 40f38f85d1d6f00608b7cbe2a27baff535279996..a7e127f9cd3927681ca5f6608cf2ea386705d922 100644 --- a/test/compiler/Makefile +++ b/test/compiler/Makefile @@ -22,6 +22,7 @@ TESTSCRIPTS_HOST += snc_test.t TESTPROD_HOST += type_expr TESTPROD_HOST += funcdef +TESTPROD_HOST += cppComment PROD_LIBS += seq pv PROD_LIBS += $(EPICS_BASE_IOC_LIBS) diff --git a/test/compiler/cppComment.st b/test/compiler/cppComment.st new file mode 100644 index 0000000000000000000000000000000000000000..c1bbbc1eb60a525b21e8f67400954fc549a9d717 --- /dev/null +++ b/test/compiler/cppComment.st @@ -0,0 +1,11 @@ +program cppCommentTest // ("parm=bla + +// #include "../na.st" +#include "../simple.st" + +exit { + // intt x; + int x = 0+0-0*0; // funny initialiser + // return x; + printf("%d", x); +}