aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/check_byte_count-ice.c
blob: 88783865f1524cac2c0549f6b15dae3c216b10e9 (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: missing terminating ' character
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
 */