summaryrefslogtreecommitdiffstats
path: root/src/curl-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/curl-test.c')
-rw-r--r--src/curl-test.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/curl-test.c b/src/curl-test.c
new file mode 100644
index 0000000..991a364
--- /dev/null
+++ b/src/curl-test.c
@@ -0,0 +1,23 @@
+/* This file is part of mingw-cross-env. */
+/* See doc/index.html for further information. */
+
+#include <curl/curl.h>
+
+int main(int argc, char *argv[])
+{
+ CURL *curl;
+
+ (void)argc;
+ (void)argv;
+
+ curl = curl_easy_init();
+ if (!curl) {
+ return 1;
+ }
+
+ curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
+ curl_easy_perform(curl);
+
+ curl_easy_cleanup(curl);
+ return 0;
+}