diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-12-04 14:50:07 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-12-04 14:50:07 +0200 |
commit | b22b21aea50f64a93413968a963c8c29ad4e6566 (patch) | |
tree | fe16721cbe1c2691ea57227923318d487c512ca0 /tests/cc/modules | |
parent | 5477c9e8aaa83e619a56150c32a1ff9faf9e86e7 (diff) |
Adjust module tests to comply with the merged proposal (P1103)
Specifically, import can no longer be inside an export block.
Diffstat (limited to 'tests/cc/modules')
-rw-r--r-- | tests/cc/modules/testscript | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/cc/modules/testscript b/tests/cc/modules/testscript index ea7bd97..7310300 100644 --- a/tests/cc/modules/testscript +++ b/tests/cc/modules/testscript @@ -223,10 +223,10 @@ $* test clean <<EOI export module foo.extra; + export import foo.base; // Note: cannot be combined with the below. + export { - import foo.base; - // VC appears to require dll-export of inline functions. // LIBFOO_EXPORT inline int g (int i) {return i != 0 ? i : -1;} @@ -236,12 +236,9 @@ $* test clean <<EOI +cat <<EOI >=foo.mxx export module foo; - export - { - import foo.core; - import foo.base; - import foo.extra; - } + export import foo.core; + export import foo.base; + export import foo.extra; EOI : basic |