Sign in
kernel
/
pub
/
scm
/
linux
/
kernel
/
git
/
palmer
/
sparse
/
f0e6938bffe0e21cde6e60ff63ed8877d4d04e26
/
.
/
validation
/
constexpr-shift.c
blob: df01b74e8dc1c60bcb28b09431e0bbea01678807 [
file
] [
log
] [
blame
]
#define
__is_constexpr
(
x
)
\
(
sizeof
(
int
)
==
sizeof
(*(
8
?
((
void
*)((
long
)(
x
)
*
0l
))
:
(
int
*)
8
)))
static
void
test
(
int
x
)
{
static
int
b
[]
=
{
[
__builtin_choose_expr
(
__is_constexpr
(
1
<<
1
),
1
,
x
)]
=
0
,
};
}
/*
* check-name: constexpr-shift
*/