libB.cpp 289 B

1234567891011121314151617181920
  1. #include "libA.h"
  2. #undef DLL_PUBLIC
  3. #define BUILDING_DLL
  4. #include "config.h"
  5. namespace meson_test_as_needed {
  6. namespace {
  7. bool set_linked() {
  8. linked = true;
  9. return true;
  10. }
  11. bool stub = set_linked();
  12. }
  13. DLL_PUBLIC int libB_unused_func() {
  14. return 0;
  15. }
  16. }