https://github.com/Kitware/CMake
Raw File
Tip revision: 92780281c2e8a46223b262b152caa9c8329373b1 authored by Brad King on 18 October 2019, 13:23:00 UTC
CMake 3.16.0-rc2
Tip revision: 9278028
LinkObjLHSShared.c
#ifndef REQUIRED
#  error "REQUIRED not defined"
#endif

#if defined(_WIN32)
#  define IMPORT __declspec(dllimport)
#else
#  define IMPORT
#endif

IMPORT int a(void);
extern int required(void);

int main(void)
{
  return required() + a();
}
back to top