aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/check_byte_count-ice.c
blob: 58b98ce5b0b678a22424b9bb1a26ac21a5710e4e (plain)
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:25: error: Bad character constant
check_byte_count-ice.c:5:15: error: not enough arguments for function memset
 * check-error-end
 */