# file : tests/cc/libu/testscript # license : MIT; see accompanying LICENSE file crosstest = false test.arguments = config.cxx=$quote($recall($cxx.path) $cxx.mode, true) .include ../../common.testscript +cat <+build/bootstrap.build using test EOI +cat <=build/root.build cxx.std = latest using cxx hxx{*}: extension = hxx cxx{*}: extension = cxx exe{*}: test = true EOI # Common source files that are symlinked in the test directories if used. # +cat <=foo.hxx #ifndef LIBFOO_EXPORT # define LIBFOO_EXPORT #endif LIBFOO_EXPORT extern int f; EOI +cat <=foo.cxx #include int f; EOI +cat <=bar.cxx #include struct b { b () {++f;} } b_; EOI +cat <=driver.cxx #include #include int main () {assert (f != 0);} EOI : basic : ln -s ../foo.hxx ../foo.cxx ../bar.cxx ../driver.cxx ./; $* test clean <