summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/determinism/solib.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/python/gyp/test/determinism/solib.cc')
-rw-r--r--third_party/python/gyp/test/determinism/solib.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/python/gyp/test/determinism/solib.cc b/third_party/python/gyp/test/determinism/solib.cc
new file mode 100644
index 0000000000..0856cd4e00
--- /dev/null
+++ b/third_party/python/gyp/test/determinism/solib.cc
@@ -0,0 +1,8 @@
+#ifdef _MSC_VER
+__declspec(dllexport)
+#else
+__attribute__((visibility("default")))
+#endif
+int foo() {
+ return 42;
+}