File: test_linking_progress.c

package info (click to toggle)
wget2 2.2.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 22,248 kB
  • sloc: ansic: 121,144; sh: 11,559; makefile: 878; xml: 182; sed: 16
file content (16 lines) | stat: -rw-r--r-- 322 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Just a test for static linking.
// We call one function from each object file in libwget_progress
// Unresolved references should come up on linking.

#include <config.h>
#include <wget.h>

int main(void)
{
	wget_bar *bar = wget_bar_init(NULL, 1);

	if (bar) {
		wget_bar_set_slots(bar, 2);
		wget_bar_free(&bar);
	}
}