d6bdaf9f13
This tests linking to an imported target that is not visible but is a transitive dependency of a target that is visible. See issue #8843.
14 lines
269 B
C
14 lines
269 B
C
#if defined(_WIN32) || defined(__CYGWIN__)
|
|
# define testExe2_IMPORT __declspec(dllimport)
|
|
#else
|
|
# define testExe2_IMPORT
|
|
#endif
|
|
|
|
testExe2_IMPORT int testExe2Func(void);
|
|
testExe2_IMPORT int testExe2lib(void);
|
|
|
|
int imp_mod1()
|
|
{
|
|
return testExe2Func() + testExe2lib();
|
|
}
|