sparse, llvm: simplify function generation
[smatch.git] / validation / escapes.c
blob4a1b030e872865ce5fc9c35199d8a8c63a750a82
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' };
7 /*
8 * check-name: Character escape sequences
10 * check-error-start
11 escapes.c:6:26: warning: Unknown escape 'c'
12 escapes.c:3:34: warning: hex escape sequence out of range
13 escapes.c:3:44: warning: hex escape sequence out of range
14 escapes.c:4:18: warning: hex escape sequence out of range
15 escapes.c:6:30: warning: multi-character character constant
16 escapes.c:6:39: warning: multi-character character constant
17 escapes.c:6:47: warning: hex escape sequence out of range
18 escapes.c:6:47: warning: multi-character character constant
19 * check-error-end