diff --git a/tests/cc/modules/modules.testscript b/tests/cc/modules/modules.testscript index 681238a..054ecd9 100644 --- a/tests/cc/modules/modules.testscript +++ b/tests/cc/modules/modules.testscript @@ -190,16 +190,16 @@ $* test &*.d &?*.ii* <'exe{test}: cxx{driver} mxx{core}' 2>>EOE != 0 info: consider specifying module name with cxx.module_name EOE -: library -: -: Test importing a module from a library. -: -ln -s ../core.mxx ../core.cxx ../driver.cxx ./; -$* test clean <=driver.cxx; - import foo; - int main (int argc, char*[]) {return f (g (argc));} - EOI - $* test clean <=driver.cxx; + # import foo; + # int main (int argc, char*[]) {return f (g (argc));} + # EOI + # $* test clean <=core.mxx; - export module foo.core; - - export __symexport int f (int); - - __symexport int g_impl (int i) {return i - 1;} - export __symexport inline int g (int i) {return g_impl (i);} - EOI -ln -s ../core.cxx core-f.cxx; -cat <=core-g.cxx; - module foo.core; - int g_impl (int i) {return i - 1;} - EOI -cat <=driver.cxx; - import foo.core; - int main (int argc, char*[]) {return f (argc) + g (argc);} - EOI -$* test clean <=core.mxx; +# export module foo.core; + +# export __symexport int f (int); + +# __symexport int g_impl (int i) {return i - 1;} +# export __symexport inline int g (int i) {return g_impl (i);} +# EOI +# ln -s ../core.cxx core-f.cxx; +# cat <=core-g.cxx; +# module foo.core; +# int g_impl (int i) {return i - 1;} +# EOI +# cat <=driver.cxx; +# import foo.core; +# int main (int argc, char*[]) {return f (argc) + g (argc);} +# EOI +# $* test clean <