Sign in
skia
/
skia
/
d90024d4982937c249bbbff8f02f46bfce71bb97
/
.
/
tests
/
sksl
/
errors
/
StaticSwitchTest.sksl
blob: 338f20c5c9d6341c4d9f042eaea7363173a899eb [
file
] [
log
] [
blame
]
void
non_constant_test_in_static_switch
()
{
int
x
=
int
(
sqrt
(
1
));
@switch
(
x
)
{
case
1
:
sk_FragColor
=
half4
(
1
);
break
;
default
:
sk_FragColor
=
half4
(
0
);
}
}