# @TEST-EXEC: HILTI_CXX_FLAGS="-DVALUE=1 -DVALUE2=2" ${HILTIC} -j %INPUT my-test.cc # # @TEST-DOC: Ensure hiltic honors the environment variable HILTI_CXX_FLAGS module Test { declare public int<64> test1() &cxxname="test1"; declare public int<64> test2() &cxxname="test2"; assert(test1() == 1); assert(test2() == 2); } @TEST-START-FILE my-test.cc #include #include hilti::rt::integer::safe test1() { return VALUE; } hilti::rt::integer::safe test2() { return VALUE2; } @TEST-END-FILE