File: struct-5.c

package info (click to toggle)
dateutils 0.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,924 kB
  • sloc: ansic: 22,097; makefile: 1,666; yacc: 198; sh: 168; lex: 108
file content (25 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#if defined HAVE_CONFIG_H
# include "config.h"
#endif	/* HAVE_CONFIG_H */
#include "dt-core.h"

int
main(void)
{
	struct dt_dt_s dt;

	dt.neg = 0;
	dt.xxx = 0;
	dt.typ = DT_SEXY;
	if (dt.d.typ != (dt_dtyp_t)DT_SEXY || dt.d.neg || dt.d.xxx) {
		return 1;
	}

	dt_make_sandwich(&dt, DT_DUNK, DT_TUNK);
	if (!dt.sandwich || dt.d.neg || dt.d.xxx) {
		return 1;
	}
	return 0;
}

/* struct-5.c ends here */