Brad King d6bdaf9f13 ENH: Test transitive link to subdir-imported lib
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.
2009-04-06 11:11:33 -04:00

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();
}