File: missing-ident.c

package info (click to toggle)
sparse 0.4.3%2B20110419-1
  • links: PTS, VCS
  • area: non-free
  • in suites: wheezy
  • size: 1,724 kB
  • sloc: ansic: 25,965; perl: 232; sh: 185; makefile: 131
file content (18 lines) | stat: -rw-r--r-- 469 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
int [2];
int *;
int (*);
int ();
int;
struct foo;
union bar {int x; int y;};
struct baz {int x, :3, y:2;};
/*
 * check-name: handling of identifier-less declarations
 *
 * check-error-start
missing-ident.c:1:8: warning: missing identifier in declaration
missing-ident.c:2:6: warning: missing identifier in declaration
missing-ident.c:3:8: warning: missing identifier in declaration
missing-ident.c:4:7: warning: missing identifier in declaration
 * check-error-end
 */