smdb.py: print the return_implies value
[smatch.git] / validation / escapes.c
blob5f526b9cadc824a2bdaf3a071790f8d0bb6f23b6
1 static int e[] = { '\'', '\"', '\?', '\\',
2 '\a', '\b', '\f', '\n', '\r', '\t', '\v',
3 '\0', '\012', '\x7890', '\xabcd' };
4 static char *s = "\'\"\?\\ \a\b\f\n\r\t\v \377\xcafe";
6 static int bad_e[] = { '\c', '\0123', '\789', '\xdefg' };
8 static char a_hex[3] = "\x61\x62\x63";
9 static char b_hex[3] = "\x61\x62\x63\x64";
10 static char c_hex[3] = "\x61\x62";
11 static char d_hex[3] = "\x61";
13 static char a_oct[3] = "\141\142\143";
14 static char b_oct[3] = "\141\142\143\144";
15 static char c_oct[3] = "\141\142";
16 static char d_oct[3] = "\141";
18 * check-name: Character escape sequences
20 * check-error-start
21 escapes.c:6:26: warning: Unknown escape 'c'
22 escapes.c:3:34: warning: hex escape sequence out of range
23 escapes.c:3:44: warning: hex escape sequence out of range
24 escapes.c:4:18: warning: hex escape sequence out of range
25 escapes.c:6:30: warning: multi-character character constant
26 escapes.c:6:39: warning: multi-character character constant
27 escapes.c:6:47: warning: hex escape sequence out of range
28 escapes.c:6:47: warning: multi-character character constant
29 escapes.c:9:24: warning: too long initializer-string for array of char
30 escapes.c:14:24: warning: too long initializer-string for array of char
31 * check-error-end