1f08c3bdfSopenharmony_cistatic int foo(int a)
2f08c3bdfSopenharmony_ci{
3f08c3bdfSopenharmony_ci	return a ?? 1 : 0;
4f08c3bdfSopenharmony_ci}
5f08c3bdfSopenharmony_ci/*
6f08c3bdfSopenharmony_ci * check-name: Bad ternary syntax
7f08c3bdfSopenharmony_ci * check-description: Once caused Sparse to segfault
8f08c3bdfSopenharmony_ci * check-error-start
9f08c3bdfSopenharmony_cibad-ternary-cond.c:3:19: error: Expected : in conditional expression
10f08c3bdfSopenharmony_cibad-ternary-cond.c:3:19: error: got ?
11f08c3bdfSopenharmony_ci * check-error-end
12f08c3bdfSopenharmony_ci */
13