diff options
Diffstat (limited to 'deps/gyp/test/dependencies/sharedlib-linksettings/sharedlib.c')
-rw-r--r-- | deps/gyp/test/dependencies/sharedlib-linksettings/sharedlib.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/deps/gyp/test/dependencies/sharedlib-linksettings/sharedlib.c b/deps/gyp/test/dependencies/sharedlib-linksettings/sharedlib.c new file mode 100644 index 0000000000..3199bccd66 --- /dev/null +++ b/deps/gyp/test/dependencies/sharedlib-linksettings/sharedlib.c @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2013 Google Inc. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifdef _WIN32 +__declspec(dllexport) +#endif +int sharedLibFunc() { + /* + * This will fail to compile if TEST_DEFINE was not obtained from sharedlib's + * link_settings. + */ + return TEST_DEFINE; +} |