1c5f01b2fSopenharmony_ci# test linking an old library version without an inline namespace
2c5f01b2fSopenharmony_ci# with the current library using an inline namespace into the same executable
3c5f01b2fSopenharmony_ci
4c5f01b2fSopenharmony_ci# build test executable and add test
5c5f01b2fSopenharmony_ciadd_executable(abi_compat_inline_ns
6c5f01b2fSopenharmony_ci    use_v3_10_5.cpp
7c5f01b2fSopenharmony_ci    use_current.cpp)
8c5f01b2fSopenharmony_citarget_link_libraries(abi_compat_inline_ns PRIVATE abi_compat_main)
9c5f01b2fSopenharmony_ci
10c5f01b2fSopenharmony_ciadd_test(
11c5f01b2fSopenharmony_ci    NAME test-abi_compat_inline_ns
12c5f01b2fSopenharmony_ci    COMMAND abi_compat_inline_ns ${DOCTEST_TEST_FILTER})
13