repo.or.cz
/
smatch.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
slice: remove unneeded nr_nrbits from EXPR_SLICE
[smatch.git]
/
validation
/
constexpr-shift.c
blob
df01b74e8dc1c60bcb28b09431e0bbea01678807
1
#define __is_constexpr(x) \
2
(sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
3
4
static void
test
(
int
x
) {
5
static int
b
[] = {
6
[
__builtin_choose_expr
(
__is_constexpr
(
1
<<
1
),
1
,
x
)] =
0
,
7
};
8
}
9
10
/*
11
* check-name: constexpr-shift
12
*/