Debian Codegraph @

test/test-ltversion.c

raw
1 #include <assert.h>
2 #include <stdio.h>
3
4 int
5 main(void)
6 {
7 const char *version = LIBWACOM_LT_VERSION;
8 int C, R, A;
9 int rc;
10
11 rc = sscanf(version, "%d:%d:%d", &C, &R, &A);
12 assert(rc == 3);
13
14 /* we don't change the soname anymore, we use symbol maps instead.
15 So these can stay fixed until we properly break the ABI and bump
16 the soname. */
17 assert(C == 9);
18 assert(R == 0);
19 assert(A == 0);
20
21 return 0;
22 }