repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git]
/
sdcc
/
support
/
valdiag
/
tests
/
static_assert.c
blob
01721eb0b1632663ba2911a4318c730a2f7ffce3
1
#pragma std_c11
2
3
#include <assert.h>
4
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
12
13
/* C23 static_assert */
14
#ifdef TEST2
15
#pragma std_c23
16
static_assert
(
1
);
17
static_assert
(
0
);
/* WARNING */
18
#endif
19