[PATCH] Add -Wno-cast-truncate
[smatch.git] / test-lexing.c
blob346cbe766d3db443ef6192a32de539d0f960698e
1 /*
2 * Example test program that just uses the tokenization and
3 * preprocessing phases, and prints out the results.
5 * Copyright (C) 2003 Transmeta Corp.
6 * 2003 Linus Torvalds
8 * Licensed under the Open Software License version 1.1
9 */
10 #include <stdarg.h>
11 #include <stdlib.h>
12 #include <stdio.h>
13 #include <string.h>
14 #include <ctype.h>
15 #include <unistd.h>
16 #include <fcntl.h>
18 #include "token.h"
19 #include "symbol.h"
21 int main(int argc, char **argv)
23 preprocess_only = 1;
24 sparse_initialize(argc, argv);
25 while (*argv)
26 sparse(argv);
27 show_identifier_stats();
28 return 0;