math: improve how get_absolute_min/max() work
[smatch.git] / validation / escapes.c
blob13f8f9c87e2185c3a4b53cc8e49cb39607493256
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:27: warning: Unknown escape 'c'
12 escapes.c:6:35: error: Bad character constant
13 escapes.c:6:38: error: Bad character constant
14 escapes.c:6:42: error: Bad character constant
15 escapes.c:6:46: error: Bad character constant
16 escapes.c:6:53: error: Bad character constant
17 escapes.c:6:56: error: Bad character constant
18 escapes.c:6:42: error: Expected } at end of initializer
19 escapes.c:6:42: error: got 89
20 * check-error-end