Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / valdiag / tests / generic.c
blobf9e871fd05c75ae44b45625e11bcb8c459a2124b
2 #ifdef TEST1
3 // No match. This used to result in an internal error when it happened in the initialization of a file-scope object.
4 int i = _Generic(7, char : 7); /* ERROR */
5 #endif
7 #ifdef TEST2
8 // No match. This used to result in an internal error (similar to the issue above, but mcs51-specific).
9 char const* a = _Generic("bla", int: "blu"); /* ERROR */
10 #endif
12 void test(void)
14 #ifdef TEST3
15 // No match.
16 int i = _Generic(7, char : 7); /* ERROR */
17 #endif