File: check_byte_count-ice.c

package info (click to toggle)
sparse 0.4.1-1
  • links: PTS, VCS
  • area: non-free
  • in suites: lenny
  • size: 1,268 kB
  • ctags: 2,691
  • sloc: ansic: 23,892; perl: 204; sh: 181; makefile: 174
file content (14 lines) | stat: -rw-r--r-- 346 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern void *memset (void *s, int c, int n);

static void foo(void *a)
{
	memset(foo, + ', 20);
}
/*
 * check-name: Segfault in check_byte_count after syntax error
 *
 * check-error-start
check_byte_count-ice.c:5:18: error: Bad character constant
check_byte_count-ice.c:5:8: error: not enough arguments for function memset
 * check-error-end
 */