Files
wget2/libwget/test_linking_dns.c
Tim Rühsen 8c84d688da Generate library libwget_dns
* libwget/Makefile.am: Add libwget_dns.la
* libwget/test_linking_dns.c: New file
2020-02-17 11:00:56 +01:00

16 lines
318 B
C

// Just a test for static linking.
// We call one function from each object file in libwget_thread
// Unresolved references should come up on linking.
#include <config.h>
#include <wget.h>
int main(void)
{
wget_dns *dns;
wget_dns_init(&dns);
wget_dns_resolve(dns, "localhost", 80, 0, 0);
wget_dns_free(&dns);
}