2021-02-26 16:55:08 -06:00
|
|
|
//@ edition:2018
|
|
|
|
|
2023-05-22 12:17:52 -05:00
|
|
|
// @is "$.index[*][?(@.name=='mod1')].inner.module.is_stripped" "true"
|
2021-02-26 16:55:08 -06:00
|
|
|
mod mod1 {
|
|
|
|
extern "C" {
|
2022-08-17 05:55:09 -05:00
|
|
|
// @set public_fn_id = "$.index[*][?(@.name=='public_fn')].id"
|
2021-02-26 16:55:08 -06:00
|
|
|
pub fn public_fn();
|
2022-08-17 05:55:09 -05:00
|
|
|
// @!has "$.index[*][?(@.name=='private_fn')]"
|
2021-02-26 16:55:08 -06:00
|
|
|
fn private_fn();
|
|
|
|
}
|
2023-05-22 12:17:52 -05:00
|
|
|
// @ismany "$.index[*][?(@.name=='mod1')].inner.module.items[*]" $public_fn_id
|
2022-08-17 05:55:09 -05:00
|
|
|
// @set mod1_id = "$.index[*][?(@.name=='mod1')].id"
|
2021-02-26 16:55:08 -06:00
|
|
|
}
|
|
|
|
|
2023-05-22 12:17:52 -05:00
|
|
|
// @is "$.index[*][?(@.inner.import)].inner.import.glob" true
|
|
|
|
// @is "$.index[*][?(@.inner.import)].inner.import.id" $mod1_id
|
|
|
|
// @set use_id = "$.index[*][?(@.inner.import)].id"
|
|
|
|
// @ismany "$.index[*][?(@.name=='glob_extern')].inner.module.items[*]" $use_id
|
2021-02-26 16:55:08 -06:00
|
|
|
pub use mod1::*;
|