aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/173 as-needed/libB.cpp
blob: a8723941b0a671363d345457d061d798b5fd6ce4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "libA.h"

#undef DLL_PUBLIC
#define BUILDING_DLL
#include "config.h"

namespace meson_test_as_needed {
  namespace {
    bool set_linked() {
      linked = true;
      return true;
    }
    bool stub = set_linked();
  }

  DLL_PUBLIC int libB_unused_func() {
    return 0;
  }
}