Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
skia
/
106e7ff887b77829e1ce1f4f118dba1e855d7547
/
.
/
resources
/
sksl
/
runtime_errors
/
IllegalStatements.rts
blob: faa27a06e1909eccb7841e834b69212b8e4ea24f [
file
] [
log
] [
blame
]
// Expect 4 errors
void
discard_stmt
()
{
discard
;
}
int
do_loop
(
int
x
)
{
do
{
x
++;
}
while
(
x
<
1
);
return
x
;
}
int
while_loop
(
int
x
)
{
while
(
x
<
1
)
{
x
++;
}
return
x
;
}
int
switch_stmt
(
int
x
)
{
switch
(
x
)
{
case
0
:
return
1
;
default
:
return
x
;
}
}