aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/check_byte_count-ice.c
blob: dae40c6768e7eb605d1f58f6c7f5e616cc061678 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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:6:0: warning: Newline in string or character constant
check_byte_count-ice.c:5:23: warning: multi-character character constant
check_byte_count-ice.c:6:1: error: Expected ) in function call
check_byte_count-ice.c:6:1: error: got }
check_byte_count-ice.c:20:0: error: Expected } at end of function
check_byte_count-ice.c:20:0: error: got end-of-input
check_byte_count-ice.c:5:15: error: not enough arguments for function memset
 * check-error-end
 */