Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / valdiag / tests / static_assert.c
blob01721eb0b1632663ba2911a4318c730a2f7ffce3
1 #pragma std_c11
3 #include <assert.h>
5 /* C11 static_assert */
6 #ifdef TEST1
7 #pragma std_c11
8 static_assert (1, "text");
9 static_assert (0, "test"); /* WARNING */
10 static_assert (1); /* ERROR */
11 #endif
13 /* C23 static_assert */
14 #ifdef TEST2
15 #pragma std_c23
16 static_assert (1);
17 static_assert (0); /* WARNING */
18 #endif