summaryrefslogtreecommitdiff
path: root/libexpat/tests/basic/driver.c
blob: 067b96bcaad1430f554650da71a7e237a99036cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* file      : tests/basic/driver.c
 * license   : MIT; see accompanying COPYING file
 */

#include <stdio.h>
#include <assert.h>

#include <expat.h>

int
main ()
{
  XML_Expat_Version v = XML_ExpatVersionInfo ();

  assert (v.major == XML_MAJOR_VERSION &&
          v.minor == XML_MINOR_VERSION &&
          v.micro == XML_MICRO_VERSION);

  printf ("version: %d.%d.%d\n", v.major, v.minor, v.micro);
  return 0;
}