repo.or.cz
/
unleashed.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
10063 basic support for smatch
[unleashed.git]
/
usr
/
src
/
tools
/
smatch
/
src
/
validation
/
preprocessor
/
predef-char-bit.c
blob
fed0166e48a4b711839c864232ccb01bf7a80ed4
1
#define TEST_BIT(X, T) if (__ ## X ## _BIT__ != 8 * sizeof(T)) return 1
2
3
int
test
(
void
)
4
{
5
TEST_BIT
(
CHAR
,
char
);
6
7
return
0
;
8
}
9
10
/*
11
* check-name: predefined __<type>_BIT__
12
* check-command: test-linearize -Wno-decl $file
13
* check-output-ignore
14
*
15
* check-output-contains: ret\\..*\\$0
16
*/