diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-06-16 13:20:00 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-06-16 13:20:00 +0200 |
commit | d3e40f931e65fcd86801630edd694e1a9a210ac4 (patch) | |
tree | 4e3237951444c34d5730db1ce7ef92807683cefc /tests/cc | |
parent | fc8c0e410697928d644f06dea772b51c3abc0e3f (diff) |
Store module information in depdb
Diffstat (limited to 'tests/cc')
-rw-r--r-- | tests/cc/modules/testscript | 30 | ||||
-rw-r--r-- | tests/cc/preprocessed/testscript | 3 |
2 files changed, 31 insertions, 2 deletions
diff --git a/tests/cc/modules/testscript b/tests/cc/modules/testscript index 5f048f8..d157336 100644 --- a/tests/cc/modules/testscript +++ b/tests/cc/modules/testscript @@ -275,4 +275,34 @@ if ($cxx.id.type != "clang") EOI } +: resolve-change +: +: Test detection of module name to BMI resolution change. +: +cp ../core.mxx ../core.cxx ../driver.cxx ./; +cat <<EOI >=foo-core.mxx; + #if __cpp_modules >= 201704 + export + #endif + module foo.core; + export inline int f (int i) {return i - 2;} + EOI +$* update <<EOI; + ./: exe{test} bmie{foo-core} + exe{test}: cxx{driver} {mxx cxx}{core} + bmie{foo-core}: mxx{foo-core} + EOI +$* test --verbose 1 <<EOI 2>>EOE; + exe{test}: cxx{driver} {mxx}{foo-core} + exe{test}: test.arguments = two + EOI + c++ cxx{driver} + ld exe{test} + test exe{test} + EOE +$* test clean <<EOI + ./: exe{test} bmie{foo-core} + exe{test}: cxx{driver} {mxx cxx}{core} + bmie{foo-core}: mxx{foo-core} + EOI } diff --git a/tests/cc/preprocessed/testscript b/tests/cc/preprocessed/testscript index e500258..8875f7a 100644 --- a/tests/cc/preprocessed/testscript +++ b/tests/cc/preprocessed/testscript @@ -9,7 +9,7 @@ test.arguments = config.cxx="$recall($cxx.path)" update # Trace filter. # -# trace: cxx::compile::extract_(header|modules): target: .../obje{(test).o...} +# trace: cxx::compile::extract_(headers|modules): target: .../obje{(test).o...} # filter = sed -n -e \ \''s/^trace: cxx::compile::extract_([^:]+): target:[^{]+\{([^.]+).*/\1 \2/p'\' @@ -101,7 +101,6 @@ $* &test* <<EOI 2>>EOE != 0 error: modules support not enabled or unavailable EOE - : all : : Test handling of comments and line continuations. Define macro on the |